[Javascript] RegExp

.ben ben at babelfish.co.uk
Wed Oct 10 04:00:45 CDT 2001


Hi all.

I'm trying to use the string.replace() function to replace all the CrLf's
(new line) in a block of text with nothing, i.e. remove all line formatting.

I was thinking I could do this:

strFarHang.replace('\n','')

is this correct?  it doesn't seem to work. :(

Cheers,

 .ben




More information about the Javascript mailing list