Just another Perl shrine | |
PerlMonks |
Re: pattern matchingby mkmcconn (Chaplain) |
on Jan 10, 2002 at 03:03 UTC ( [id://137604]=note: print w/replies, xml ) | Need Help?? |
dmmiller2k is right. You also want to be sure that the 'text' that you are reading is examined as a single string, by your matching pattern (not one line at a time). Then the regex is pretty simple (but note the /s operator is added, as dmmiller2k advised).
mkmcconn update please note that this regex example is for illustration only - it's easily broken and the reason it appears to work is because of the structure of the data example.
In Section
Seekers of Perl Wisdom
|
|