kscript has asked for the wisdom of the Perl Monks concerning the following question:
With that in mind, I was wondering if it is possible to do one of the following:s/ $STRING $PATTERN /$REPLACEMENT/gx # where <i>STRING</i> and <i>PATTERN</i> are user-defined
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Escaping regex characters in user-defined input
by FunkyMonk (Bishop) on Aug 24, 2007 at 15:26 UTC | |
by moritz (Cardinal) on Aug 24, 2007 at 15:28 UTC | |
by kscript (Novice) on Aug 24, 2007 at 16:47 UTC |