in reply to Re: Re: replacing /n
in thread [untitled node, ID 153717]
Actually I've taken to using s/\r?\n/
/g lately.
That will handle Dos/Windows and Unix-like linebreaks, but not Macintosh linebreaks.
s/\r\n?|\n/<br>/g; # Actually, this one's better: s/\015\012?|\012/<br>/g;
U28geW91IGNhbiBhbGwgcm90MTMgY
W5kIHBhY2soKS4gQnV0IGRvIHlvdS
ByZWNvZ25pc2UgQmFzZTY0IHdoZW4
geW91IHNlZSBpdD8gIC0tIEp1ZXJk
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: replacing /n
by Kanji (Parson) on Mar 23, 2002 at 17:39 UTC |