Regex Validator
g: global match, finds all matches
i: ignore case, treats A and a the same
m: multi-line, ^ and $ match start/end of lines
s: dotall, allows . to match newline characters
u: unicode mode, enables full Unicode support
y: sticky, matches at the current position only
FAQ
What can the regex validator do?
It checks whether a regular expression is valid locally in your browser and lets you preview matches, capture groups, and named groups against test text in real time.
Which flags are supported?
Common flags such as g, i, m, s, u, and y can be typed directly.
- g: Global matching, find all matches
- i: Case-insensitive matching, treat a and A as the same
- m: Multiline mode, let ^ and $ match line start/end
- s: Dot-all mode, let . match line breaks
- u: Enable Unicode mode, support Unicode code points
- y: Sticky matching, match from the current index
If the flags themselves are invalid, the browser syntax error will be shown.
Is my input uploaded to a server?
No. Regex validation and matching happen entirely in your browser and are not sent to a server.