[thelist] IE RegExp Assistance

Lee Kowalkowski lee.kowalkowski at lycos.com
Fri Dec 16 11:03:36 CST 2005


From: "Peter Leing" <pleing at Cenlar.com>
> I'm using the expression (\s+) on the sentence
> "This is my sentence."

I don't think the split function accepts regular expressions, so how are you splitting the string using regular expressions?

Does (\b+) produce more consistent results?

I find "This is my sentence.".match(/(\S+)/g) returns This,is,my,sentence. in both browsers.  Do you really want to keep the spaces, or just to be consistent?

- LK


-- 
_______________________________________________

Search for businesses by name, location, or phone number.  -Lycos Yellow Pages

http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.com/default.asp?SRC=lycos10




More information about the thelist mailing list