Perl Monk, Perl Meditation | |
PerlMonks |
Re: Re: Regex with newlineby dvergin (Monsignor) |
on Apr 05, 2001 at 03:21 UTC ( [id://69937]=note: print w/replies, xml ) | Need Help?? |
Note that thabenksta's example does not include
the '/s'.
You do not need it and you obscure its meaning
and usefulness when you
use it reflexively just because you are working with
multiple lines.
'/s' simply allows '.' to match line break characters. It has no other effect on the ability of your regex to work with multiple lines.
In Section
Seekers of Perl Wisdom
|
|