Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^3: Reverse engineering regular expressions

by CountZero (Bishop)
on Aug 06, 2005 at 16:19 UTC ( #481512=note: print w/replies, xml ) Need Help??


in reply to Re^2: Reverse engineering regular expressions
in thread Reverse engineering regular expressions

This is a duplicate of my answer to Parse::RandGen::Regexp

As the qr// method runs in interpolative context one can do

use strict; my $match='test'; my $regex_match=qr/$match/i; my $test_value='This is a Test'; print 'It matches' if $test_value=~m/$regex_match/;

CountZero

"If you have four groups working on a compiler, you'll get a 4-pass compiler." - Conway's Law

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://481512]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (4)
As of 2021-02-28 17:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?