in reply to Regexes that use a string as basis for matching
or even simpler (but slower)$s = "match"; $re = qr/$s/; print "yup" if $something =~ $re;
$s = "match"; print "yup" if $something =~ /$s/;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Regexes that use a string as basis for matching
by ikegami (Patriarch) on Jun 15, 2008 at 05:35 UTC | |
|
Re^2: Regexes that use a string as basis for matching
by Your Mother (Archbishop) on Jun 15, 2008 at 04:39 UTC | |
|
Re^2: Regexes that use a string as basis for matching
by gatito (Novice) on Jun 14, 2008 at 22:05 UTC |