|
|
|
Your skill will accomplish what the force of many cannot |
|
| PerlMonks |
Re: how to write a multi-line regexby rkrieger (Friar) |
| on Jan 22, 2010 at 00:19 UTC ( #818847=note: print w/ replies, xml ) | Need Help?? |
|
You may want to take a look at perlre and perlretut. I usually pick something such as below (admittedly picked it up from Perl Best Practices by Damian Conway). I like to use the 'xms' modifiers:
Alternatively, I use Regexp::Common as well if I want to build something up from components. It's not really what you were asking, but it may be handy.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||