-
strange syntax error with bracket character only
hi all
I am having a very strange problem with a script I’m writing.
I’m doing a string search and get a syntax error only if I search for an opening bracket character i.e. “(” . Any other character including the closing bracket, various other symbols, chunks of text works fine…? but any string containing the opening bracket reports an error.
is this a bug ? it’s driving me crazy .doesn’t work:
else if (lineData.search(“)”) != -1){
else if (lineData.search(“blah ) blah”) != -1){this does:
else if (lineData.search(“(“) != -1){
else if (lineData.search(“#blah”) != -1){../daniel