Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
How do I get $pat to be treated as a normal reg expression?$word = "cccv"; $pat = "[^aeiou][^aeiou][^aeiou][aeiou]"; if($word =~ /($pat)/{ $yep++; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Regular Expression Question
by kelan (Deacon) on Apr 03, 2003 at 18:18 UTC | |
|
Re: Regular Expression Question
by dragonchild (Archbishop) on Apr 03, 2003 at 18:17 UTC | |
by perlguy (Deacon) on Apr 03, 2003 at 20:52 UTC | |
|
Re: Regular Expression Question
by perlguy (Deacon) on Apr 03, 2003 at 20:41 UTC | |
by Anonymous Monk on Apr 04, 2003 at 08:27 UTC | |
by perlguy (Deacon) on Apr 04, 2003 at 15:24 UTC | |
by Anonymous Monk on Apr 04, 2003 at 23:09 UTC | |
|
Re: Regular Expression Question
by jasonk (Parson) on Apr 03, 2003 at 18:15 UTC | |
by grantm (Parson) on Apr 03, 2003 at 18:39 UTC | |
by Abigail-II (Bishop) on Apr 03, 2003 at 18:35 UTC |