Just another Perl shrine | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Yep, just tested.
But I think the explanation is still the same. (point 1) The fix doesn't work because the regex has to decide which non-greedy ? has "precedence". I know there are ways to handles this in one regex, but my advice is just to use a second one checking the tail of the string. (point 2)
Cheers Rolf
In reply to Re^3: Regex Optional capture doesn't
by LanX
|
|