An Introduction to Regular Expressions The Substitution Operator 33 of 50 : [PREV] [NEXT]

Modifiers

Like the Matching operator, the Substitution operator can have various modifiers, some of which affect the interpretation of the regular expression inside.

The modifiers are:

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

The modifiers /gimsx perform the same as for the match operator.


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