in reply to s/// treat rhs as regex
If you're sure that your shell doesn't expand metacharacters (that is, print $regexReplace to make sure it's sane), add the /e flag to your regexp.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: s/// treat rhs as regex
by AnomalousMonk (Archbishop) on Sep 07, 2008 at 10:14 UTC | |
by chuckH (Initiate) on Sep 11, 2008 at 01:53 UTC |