This is indeed a string that contains a qr expression:
{"name" => 'qr/.*uba$/i'}
Does removing the quotes solve your problem?
{"name" => qr/.*uba$/i}
When you perform string manipulations to form your qr-expression, you might find quotemeta useful.
In reply to Re: creating qr from existing regex
by Perlbotics
in thread creating qr from existing regex
by Bobert1234
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |