in reply to Regex with newline
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;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Regex with newline
by schumi (Hermit) on Jun 25, 2001 at 20:31 UTC |