Welcome to the Monastery | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
In these simple cases better prefer simple approaches!
Constructing regexes as concatenations of strings or qrs is simple and clear! But if you really need to "abuse" the full builtin regex power, you may wanna have a look at "(?PARNO)" "(?-PARNO)" "(?+PARNO)" "(?R)" "(?0)" in perlre! This functionality was introduced for complicated recursions ... You can also try to dynamically generate the regex with embedded perlcode like (?{..}) or (??{..}). to achieve even more obfuscation... ;-)
Cheers Rolf Update: example
In reply to Re: Question: Capturing a repeated pattern
by LanX
|
|