\n will result in a newline.
\N will result in a syntax error.
\\N will give \N.
If you're not getting \N from \\N, there's something you haven't showed us.
Update: meraxes caught the problem.
In reply to Re^3: Problem with String replace in file
by ikegami
in thread Problem with String replace in file
by philosophia
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |