[Javascript] RegExp

Mikael Lindström mikael.lindstrom at nipsoft.se
Wed Oct 10 04:12:20 CDT 2001


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
> 



More information about the Javascript mailing list