The | is the "or" operator in a regular expression. You need to escape it for your regex to work:
s/\|\|/|\\N|/g;
In reply to Re: Problem with String replace in file
by meraxes
in thread Problem with String replace in file
by philosophia
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |