in reply to creating qr from existing regex
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 Section
Seekers of Perl Wisdom