It makes sense. I still have to figure out that the string is a regexp though (it can also be a regular string), so the extra $nregexp= qr/(?$1:$3)/; is cheap. $nregexp = qr/$string/; might be a little safer though, in case the syntax for regexp changes (but then I would probably have to change the regexp that matches it anyway).
In reply to Re^2: Converting a stringified regexp back into a regexp
by mirod
in thread Converting a stringified regexp back into a regexp
by mirod
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |