Search the archives!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Javascript] How do I refer to whitespace characters?
- From: javascript@xxxxxxxxxx (Lau)
- Subject: [Javascript] How do I refer to whitespace characters?
- Date: Fri, 26 Apr 2002 15:02:18 +1000
I want to read a string and remove all the whitespace before a word.
How do I refer to tabs and newline characters etc.
Can anyone give me a full list of what I should be checking for?
while(mystr.length>0 && mystr.charAt(0)==" ")
mystr= mystr.substr(1);
Peace
Lau
- Follow-Ups:
- [Javascript] How do I refer to whitespace characters?
- From: Dan Costea
- [Javascript] How do I refer to whitespace characters?
- Prev by Date: [Javascript] Internet JavaScript Course?
- Next by Date: [Javascript] Object help
- Previous by thread: [Javascript] Internet JavaScript Course?
- Next by thread: [Javascript] How do I refer to whitespace characters?
- Index(es):