Don't ask to ask, just ask | |
PerlMonks |
Re^2: How to strip comments and whitespace from a regex defined with /x?by ikegami (Patriarch) |
on Jan 21, 2018 at 18:53 UTC ( [id://1207637]=note: print w/replies, xml ) | Need Help?? |
As long as (?{ }) and (??{ }) aren't supported.
You could have Perl compile the pattern and recreate the pattern from the compiled form. This could require maintenance every time Perl is upgraded. Then again, same goes for writing your own parser.
In Section
Seekers of Perl Wisdom
|
|