evilsizord has asked for the wisdom of the Perl Monks concerning the following question:
and also I tried escaping the non-word characters (another suggestion I found on another website) before I performed the match, like this:/\Q$string\E/ and /$\Qstring\E/
20031124 Edit by BazB: Changed title from 'newbie question'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Quoting metacharacters in regexen
by Roger (Parson) on Nov 24, 2003 at 00:38 UTC | |
|
Re: Quoting metacharacters in regexen
by Anonymous Monk on Nov 24, 2003 at 00:09 UTC | |
|
Re: Quoting metacharacters in regexen
by evilsizord (Initiate) on Nov 24, 2003 at 00:58 UTC | |
|
Re: Quoting metacharacters in regexen
by jZed (Prior) on Nov 24, 2003 at 00:06 UTC |