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
In reply to Re: Re: Re: replacing /n
by Juerd
in thread [untitled node, ID 153717]
by Samn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |