Regex Flags Reference
- g (global): Find all matches, not just the first one.
- i (case-insensitive): Match regardless of letter case.
- m (multiline):
^and$match start/end of each line. - s (dotAll):
.also matches newline characters.
Test regular expressions live with match highlighting, capture groups, and flag controls.
^ and $ match start/end of each line.. also matches newline characters.