<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<TITLE>Message</TITLE>

<META content="MSHTML 6.00.2800.1106" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=839462318-11122002><FONT face="Courier New" color=#0000ff 
size=2>\o/ :)</FONT></SPAN></DIV>
<BLOCKQUOTE 
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
  <DIV></DIV>
  <DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><FONT 
  face=Tahoma size=2>-----Original Message-----<BR><B>From:</B> 
  javascript-admin@LaTech.edu [mailto:javascript-admin@LaTech.edu] <B>On Behalf 
  Of </B>Carl Adler<BR><B>Sent:</B> 11 December 2002 18:20<BR><B>To:</B> 
  javascript@LaTech.edu<BR><B>Subject:</B> Re: [Javascript] 
  Split<BR><BR></FONT></DIV>I just tested it and \/ works and // does not 
  work.<BR>Carl<BR>
  <BLOCKQUOTE><BR><B>From: </B>Peter Brunone 
    &lt;peter_brunone@yahoo.com&gt;<BR><B>Reply-To: 
    </B>javascript@LaTech.edu<BR><B>Date: </B>Wed, 11 Dec 2002 09:08:50 -0800 
    (PST)<BR><B>To: </B>javascript@LaTech.edu<BR><B>Subject: </B>Re: 
    [Javascript] Split<BR><BR></BLOCKQUOTE><BR>
  <BLOCKQUOTE><BR>But he wants to split based on \, not on /. 
    &nbsp;<BR><BR>txt.split("\\") escapes the second \ character, just as 
    <BR><BR>txt.split("\"") escapes the " character so you can split on it... 
    not that you would, but there it is. <BR><BR>As for working in different 
    browsers... ah, that's the joy of web development. <BR><BR>-Peter 
    <BR><BR><B><I>Carl Adler &lt;carl@carladler.org&gt;</I></B> wrote: <BR>
    <BLOCKQUOTE>Actually var t=txt.split("\")<BR>&gt; |works for me using 
      Netscape 4.7 and IE 5.1 on the Mac and IE 5.5 on Windows<BR>ME. If "\" was 
      a problem I think that you would use "\/" not "//"<BR>Carl<BR><BR>&gt; 
      From: "Peter Brunone" <BR>&gt; Organization: Your Name Here<BR>&gt; 
      Reply-To: javascript@LaTech.edu<BR>&gt; Date: Tue, 10 Dec 2002 17:40:46 
      -0600<BR>&gt; To: <BR>&gt; Subject: RE: [Javascript] Split<BR>&gt; 
      <BR>&gt; <BR>&gt; var t=txt.split("\\")<BR>&gt; <BR>&gt; |-----Original 
      Message-----<BR>&gt; |From: javascript-admin@LaTech.edu 
      [mailto:javascript-admin@LaTech.edu]On<BR>&gt; |Behalf Of Andrew 
      Gibson<BR>&gt; |Sent: Wednesday, December 11, 2002 4:23 AM<BR>&gt; |To: 
      javascript@LaTech.edu<BR>&gt; |Subject: [Javascript] Split<BR>&gt; 
      |<BR>&gt; |<BR>&gt; |I'm trying to use split to separate out a file name 
      from the complete<BR>&gt; |string.<BR>&gt; |<BR>&gt; |from<BR>&gt; 
      |<BR>&gt; | var txt="C:\Copy\new.html"<BR>&gt; |<BR>&gt; | I want to get 
      "new.html"<BR>&gt; |<BR>&gt; |Whenever I try to use "\" I get a 
      Unterminated String variable error<BR>&gt; | eg var 
      t=txt.split("\")<BR>&gt; |<BR>&gt; |Obviously the problem is in trying to 
      use the "\" character which is an<BR>&gt; |escape char for JScript I 
      beleive. But how can I solve my problem?<BR>&gt; |<BR>&gt; |Andrew<BR>&gt; 
      |<BR>&gt; |<BR>&gt; 
      |_______________________________________________<BR>&gt; |Javascript 
      mailing list<BR>&gt; |Javascript@LaTech.edu<BR>&gt; 
      |https://lists.LaTech.edu/mailman/listinfo/javascript<BR>&gt; |<BR>&gt; 
      _______________________________________________<BR>&gt; Javascript mailing 
      list<BR>&gt; Javascript@LaTech.edu<BR>&gt; 
      https://lists.LaTech.edu/mailman/listinfo/javascript<BR>&gt; 
      <BR><BR>_______________________________________________<BR>Javascript 
      mailing 
      list<BR>Javascript@LaTech.edu<BR>https://lists.LaTech.edu/mailman/listinfo/javascript<BR><BR><BR></BLOCKQUOTE><BR><BR>
    <HR align=center width="100%" SIZE=1>
    <BR>Do you Yahoo!?<BR>Yahoo! Mail Plus 
    &lt;http://rd.yahoo.com/mail/mailsig/*http://mailplus.yahoo.com&gt; &nbsp;- 
    Powerful. Affordable. Sign up now 
    &lt;http://rd.yahoo.com/mail/mailsig/*http://mailplus.yahoo.com&gt; 
  <BR></BLOCKQUOTE><BR></BLOCKQUOTE></BODY></HTML>