Matching
Syntax
["Regexp", "Flags"], [...]
Parameters
Regexp A regular expression object
Flags Regular expressions have optional flags that allow for functionality like global searching and case-insensitive searching
Flag | Description |
---|---|
d | Generate indices for substring matches |
g | Find all matches rather than stopping after the first match |
i | If |
m | Treat beginning and end characters ( |
s | Allows |
u | Treat |
Return Value
All results matching the complete regular expression will be returned.
Example
Last updated