I have had similar problems, its besause it puts a hard return in with the newlines.
Use:not sure which.$string =~ s/\r\n/<br>/g; or $string =~ s/\n\r/<br>/g;
In reply to Re: Regex with newline
by thabenksta
in thread Regex with newline
by voyager
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |