Search the archives!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Javascript] Split
- From: javascript@xxxxxxxxxx (Carl Adler)
- Subject: [Javascript] Split
- Date: Wed, 11 Dec 2002 07:38:41 -0500
Actually var t=txt.split("\")
> |works for me using Netscape 4.7 and IE 5.1 on the Mac and IE 5.5 on Windows
ME. If "\" was a problem I think that you would use "\/" not "//"
Carl
> From: "Peter Brunone" <peter@xxxxxxxxxxx>
> Organization: Your Name Here
> Reply-To: javascript@xxxxxxxxxx
> Date: Tue, 10 Dec 2002 17:40:46 -0600
> To: <javascript@xxxxxxxxxx>
> Subject: RE: [Javascript] Split
>
>
> var t=txt.split("\\")
>
> |-----Original Message-----
> |From: javascript-admin@xxxxxxxxxx [mailto:javascript-admin@xxxxxxxxxx]On
> |Behalf Of Andrew Gibson
> |Sent: Wednesday, December 11, 2002 4:23 AM
> |To: javascript@xxxxxxxxxx
> |Subject: [Javascript] Split
> |
> |
> |I'm trying to use split to separate out a file name from the complete
> |string.
> |
> |from
> |
> | var txt="C:\Copy\new.html"
> |
> | I want to get "new.html"
> |
> |Whenever I try to use "\" I get a Unterminated String variable error
> | eg var t=txt.split("\")
> |
> |Obviously the problem is in trying to use the "\" character which is an
> |escape char for JScript I beleive. But how can I solve my problem?
> |
> |Andrew
> |
> |
> |_______________________________________________
> |Javascript mailing list
> |Javascript@xxxxxxxxxx
> |https://lists.LaTech.edu/mailman/listinfo/javascript
> |
> _______________________________________________
> Javascript mailing list
> Javascript@xxxxxxxxxx
> https://lists.LaTech.edu/mailman/listinfo/javascript
>
- Follow-Ups:
- [Javascript] Split
- From: Peter Brunone
- [Javascript] Split
- References:
- [Javascript] Split
- From: Peter Brunone
- [Javascript] Split
- Prev by Date: [Javascript] variable whose name is the result of a calculation?
- Next by Date: [Javascript] Your Free E mail Books!
- Previous by thread: [Javascript] Split
- Next by thread: [Javascript] Split
- Index(es):