[javascript-dev] Re: String.search problem...
Joshua Kit Clayton
jkc at musork.com
Wed Jan 23 16:54:01 MST 2008
- Previous message: [javascript-dev] Re: String.search problem...
- Next message: [javascript-dev] Re: String.search problem...
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Jan 23, 2008, at 3:45 PM, Anthony Palomba wrote: > > String.search takes a string and searches it for a > specified substring. It returns -1 or the index of the > beginning of that substring. I am pretty sure this works. Your error message would suggest it thinks "[" is the beginning of a regexp charset. So for ordinary strings maybe this is true since they are the same as their representation as a regular expression. Try using "\[" and "\]" --i.e. backslash to escape the brackets... Let us know what you find. -Joshua
- Previous message: [javascript-dev] Re: String.search problem...
- Next message: [javascript-dev] Re: String.search problem...
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
