Home String Object String.replace() String.slice()

3.2.11.11 String.search()

result = string.search(regexp);

The function the index of the regular expression inside the string. If the regular expression was not found, returns -1 is returned.

See also: String.match(), String.replace(), RegExp Object


Home String Object String.replace() String.slice()

Search

Latest news from the Forum