The search() method returns the position of the first occurrence of a string in a string.
Return the position of the first occurrence of a regular expression: