Mega Code Archive

 
Categories / Perl / Regular Expression
 

Pattern Modifiers

Code    Description g       Global—match all occurrences of the regular expression i       Ignore case—match any case m       Multiple lines—process the input as multiple lines o       Only once—compile the regular expression the first time s       Single line—ignore new lines x       Extra spaces—allow comments and spaces in regular expression syntax