good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: Conditional continued matching with regexesby diotalevi (Canon) |
on Feb 05, 2007 at 22:43 UTC ( [id://598444]=note: print w/replies, xml ) | Need Help?? |
Perhaps you meant to look at (??{...}). That takes a bit of perl code, returns a string or qr// object and uses that as the next regexp fragment. (?{...}) just runs some perl code and only (?(...)...|...) uses its return value for anything. ⠤⠤ ⠙⠊⠕⠞⠁⠇⠑⠧⠊
In Section
Seekers of Perl Wisdom
|
|