KW.pm Regular Expressions #12

Changing the behaviour of your regex: Modifiers

ModifierMeaning
/i
Ignore case in match
/s
Let . match newline and ignore depricated $* variable
/m
Let ^ and $ match next to embedded \n
/x
Ignore whitespace and comments in regex
/o
Compile pattern once only.

<< Previous | Index | Next >> Copyright © 2002 Christopher Calzonetti