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.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: creating qr from existing regex
by Bobert1234 (Novice) on Feb 08, 2018 at 18:26 UTC | |
by poj (Abbot) on Feb 08, 2018 at 19:08 UTC | |
by Bobert1234 (Novice) on Feb 09, 2018 at 06:54 UTC | |
by AnomalousMonk (Archbishop) on Feb 09, 2018 at 14:47 UTC | |
by Your Mother (Archbishop) on Feb 09, 2018 at 18:30 UTC |
In Section
Seekers of Perl Wisdom