Lejocode has asked for the wisdom of the Perl Monks concerning the following question:
i know that might seems weird to you, but in my language, it doesn't. so with large list of words like "efg", the question is:s/\babcdefg\b/abcdexg/g; s/\babefg\b/abexg/g; s/\bcdefg\b/cdexg/g; s/\befg\b/exg/g;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Regex or Normal Replace?
by Anonymous Monk on Apr 17, 2017 at 03:55 UTC | |
by Lejocode (Novice) on Apr 17, 2017 at 04:59 UTC | |
|
Re: Regex or Normal Replace?
by AnomalousMonk (Archbishop) on Apr 17, 2017 at 02:18 UTC | |
|
Re: Regex or Normal Replace?
by LanX (Saint) on Apr 17, 2017 at 01:44 UTC | |
|
Re: Regex or Normal Replace?
by 1nickt (Canon) on Apr 17, 2017 at 01:44 UTC |