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

The /x Modifier

The /x modifier tells the Engine to ignore whitespace that is not backslashed or within a character class. Use this modifier to break up your regular expression into more readable parts. The following patterns match "abc":

/a b c/x
m#a b c#x

m/a
b
c/x

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