Search the archives!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Javascript] Split
- From: javascript@xxxxxxxxxx (Andrew Gibson)
- Subject: [Javascript] Split
- Date: Wed, 11 Dec 2002 23:23:17 +1300
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
- Follow-Ups:
- [Javascript] Split
- From: Peter Brunone
- [Javascript] Split
- Prev by Date: [Javascript] Your Free E mail Books!
- Next by Date: [Javascript] variable whose name is the result of a calculation?
- Previous by thread: [Javascript] Your Free E mail Books!
- Next by thread: [Javascript] Split
- Index(es):