No, more something like strFarHang.replace(/\n/,'') /Mikael > -----Original Message----- > From: javascript-admin at LaTech.edu > [mailto:javascript-admin at LaTech.edu]On > Behalf Of .ben > Sent: Wednesday, October 10, 2001 11:01 AM > To: JavaScript Mailing List > Subject: [Javascript] RegExp > > > 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 > > _______________________________________________ > Javascript mailing list > Javascript at LaTech.edu > http://www.LaTech.edu/mailman/listinfo/javascript >