JavaScript Strings
The search() Method
search() searches a string for a value and returns the position of the match: