Returns an index of the first substring match in the string.
search(value)
value
A string or a regular expression object.
The index of the first match, or -1 if not found.
-1
"Mayday Parade".search("ay")
1
"Blink-182".search(/\d/)
6