Matches
—
Flags
g
Pattern
About this tool
What is the Regex Tester?
The Wansify Regex Tester lets you write a regular expression, set flags, and see live matches and capture groups highlighted against your sample text in the browser.
How to use it
- 1Enter a pattern and optional flags such as g, i, m, s, or u.
- 2Paste the text you want to test against.
- 3Read highlighted matches and the list of capture groups.
- 4Try a sample pattern or copy the RegExp literal.
Features
- Live match highlighting
- Capture groups and match index list
- Flags: g, i, m, s, u, y
- Common pattern presets
- Clear error messages for invalid patterns
- Copy the RegExp literal
- Runs in your browser
FAQ
Common questions about the Regex Tester
Which regex flavour does this use?
JavaScript RegExp, the same engine used in browsers and Node.js.
Why is the global flag important?
With g, every match is listed. Without g, only the first match is returned.
Is the regex tester free?
Yes. It is free to use with no sign-up.
More free tools
JSON Formatter & ValidatorFormat, validate, repair and minify JSON live as you type. Tree view, path filter, and YAML, CSV or TypeScript export. Free and runs in your browser.HTML, CSS & JavaScript FormatterBeautify and minify HTML, CSS and JavaScript online. Clean up code for development and debugging. Free formatter in your browser.All tools