in reply to Replacing line returns with br
\\r is trying to replace a slash followed by an r, not a carriage return or whatever... and if it is a unix file it won't have a \r even... not sure but mac files are weird, too...$text =~ s/\r?\n/<BR>/g;
- Ant
- Some of my
best work - (1 2 3)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Replacing line returns with br
by Juerd (Abbot) on Jan 08, 2002 at 00:08 UTC |