How to replace line break characters?
- From: laredotornado@xxxxxxxxxxx
- Date: 30 Aug 2006 13:53:25 -0700
Hello,
What am I doing wrong in my regular expression? I'm trying to replace
line break characters by
responseText =
responseText.replace(/(\r|\n)/, "");
However my response still contains characters with ASCII values of 10.
How can I rewrite the above?
Thanks, - Dave
.
- Follow-Ups:
- Re: How to replace line break characters?
- From: Georgi Naumov
- Re: How to replace line break characters?
- Prev by Date: Re: how to draw pie graph or line graph
- Next by Date: Re: call php usingn AJAX responseXML seems to be null
- Previous by thread: User preload to execute a script on the sever side
- Next by thread: Re: How to replace line break characters?
- Index(es):