Hi everybody,
I'm using this function that helps my webdevelopers to find a piece of code in a webpage:
function findString (str) {
var strFound;
strFound=self.find(str);
if (strFound && self.getSelection && !self.getSelection().anchorNode ){
strFound=self.find(str);
}
if (!strFound) {
strFound=self.find(str,1,1)
while (self.find(str,1,1)) continue
}
}
The problem is that when I enter the following string for example:
array[1]
It can't find it! Which is strange because I tried this function and It can find any other string. So, how can I use this function to find a string containing square brackets (without using regular expressions if it's possible)?
Thank you,
Regards