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