Pattern Modifiers : Pattern matching « Regular Expression « Perl
- Perl
- Regular Expression
- Pattern matching
Pattern Modifiers
Code Description
g Globalmatch all occurrences of the regular expression
i Ignore casematch any case
m Multiple linesprocess the input as multiple lines
o Only oncecompile the regular expression the first time
s Single lineignore new lines
x Extra spacesallow comments and spaces in regular expression syntax
Related examples in the same category