๐Ÿšฉ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.

g

global search.

i

ignore case.

m

allows ^ and $ to match newline.

s

allows . to match newline.

y

"sticky" search: matches starting at the current position in the target string.

Last updated

Was this helpful?