Search notes:
JavaScript: String methods that operate on regular expression
There are a few
String
methods that operate on
regular expresssions
:
search(…)
: find the position of a
regular expression
match(…)
: return the matched regular expressions in an
array
replace(…)
: replace a regular expression with a value.
See also
String
RegExp
Index