method String.search Private String.search(regexp: string | RegExp): number Finds the first substring match in a regular expression search. Parameters regexp: string | RegExp The regular expression pattern and applicable flags. Return Type number