search in JS
Description
Finds the index of a pattern using REGEX (JavaScript search function Documentation).
Sample Source Pattern
Syntax
Arguments
regex
: Regular expression which matches with the desired pattern.
Return Type
Integer. If the pattern does not match with any part of the string, returns -1.
Examples
Last updated