[PLUG] (no subject)

Rafi rmahdawiyan@home.com
Mon, 9 Apr 2001 18:09:48 -0500


This is a multi-part message in MIME format.

------=_NextPart_000_0095_01C0C120.438F4170
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Dear one who knows how to use Javascript's 'replace' method and =
understands regular expressions:

I am trying to replace a newline character (\n) with a blank.  How do I =
do that?  I tried=20

var re =3D /\n/
strX.replace(re, " ")  // strX has the string.

but no result.


------=_NextPart_000_0095_01C0C120.438F4170
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2920.0" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>
<DIV><FONT face=3DArial size=3D2>Dear one who knows how to use =
Javascript's=20
'replace' method and understands regular expressions:</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I am trying to replace a newline =
character=20
(</FONT><FONT face=3DArial size=3D2>\n)&nbsp;with a blank.&nbsp; How do =
I do=20
that?&nbsp; I tried </FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>var re =3D /\n/</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>strX.replace(re, " ")&nbsp; <A=20
href=3D"file:// strX">// strX</A>&nbsp;has the string.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>but no result.</FONT></DIV>
<DIV>&nbsp;</DIV></FONT></DIV></BODY></HTML>

------=_NextPart_000_0095_01C0C120.438F4170--