\\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)
In reply to Re: Replacing line returns with br
by suaveant
in thread Replacing line returns with br
by dpatrick
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |