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

Modifiers

The matching operators (m// and s///) can have various modifiers, some of which affect the interpretation of the regular expression inside.

The modifiers are:

gDo global pattern matching.
iDo case-insensitive pattern matching.
mTreat the string as multiple lines.
sTreat the string as a single line.
xIgnore whitespace within a pattern.

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