in reply to Problem with String replace in file
The | is the "or" operator in a regular expression. You need to escape it for your regex to work:
s/\|\|/|\\N|/g;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Problem with String replace in file
by philosophia (Sexton) on Oct 22, 2007 at 17:31 UTC | |
by meraxes (Friar) on Oct 22, 2007 at 17:36 UTC | |
by philosophia (Sexton) on Oct 22, 2007 at 18:17 UTC | |
by ikegami (Patriarch) on Oct 22, 2007 at 17:40 UTC |