An Introduction to Regular Expressions The Match Operator 30 of 50 : [PREV] [NEXT]

The /m & /s Modifiers

The multi-line and single-line modifiers.

mode ^ and $ anchors consider target as dot
default mode
single-line mode
multi-line mode
clean multi-line
a single string, without regard to newlines
a single string, without regard to newlines
multiple logical lines separated by newlines
multiple logical lines separated by newlines
doesn't match newline
matches all characters
(unchanged from default)
matches all characters

© 2003 Barbie barbie@missbarbell.co.uk Home http://birmingham.pm.org/