All tools / Developer and web / Regex tester
Regex tester
Test regular expressions with live matches.
About this tool
Write a JavaScript regular expression, set flags and see every match with its position and capture groups update as you type.
How to use it
- Enter the pattern and flags.
- Paste your test string.
- Read the matches below.
Questions
- What does the g flag do?
- It finds all matches instead of only the first.
- Which regex flavor is it?
- JavaScript. Some features from other languages, such as possessive quantifiers, are not available.