in reply to Re: Converting a stringified regexp back into a regexp
in thread Converting a stringified regexp back into a regexp
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).
|
|---|