![]() |
|
Welcome to the Monastery | |
PerlMonks |
Re^2: Complex Splittingby Roy Johnson (Monsignor) |
on Feb 06, 2007 at 15:54 UTC ( [id://598566]=note: print w/replies, xml ) | Need Help?? |
I don't think it's a lot trickier. This oughta do it:
That is, if you split on a bracketed group, capture it. If you don't have a bracketed group, split on nothing. Then filter out where the capture didn't match. Caution: Contents may have been coded under pressure.
In Section
Seekers of Perl Wisdom
|
|