🚩regex flag
🚧 under construction
JS ⟩ value ⟩ object ⟩ regex ⟩ flag
flag | description | corresponding property |
---|---|---|
generate indices for substring matches. | ||
treat a pattern as a sequence of Unicode code points. | ||
| global search. | |
| ignore case. | |
| allows | |
| allows | |
| "sticky" search: matches starting at the current position in the target string. |
when using str.matchAll(regex), the regex
must have the global (g
) flag set, or a TypeError
is thrown❗
Last updated