Regex tester
Test a JavaScript regular expression and list every match with its groups.
Runs on this device
Input
Ctrl ↵ Add to workflow
More in Developer
About Regex Tester
Enter a JavaScript regular expression and flags, paste your text, and see every match with its capture groups. It uses the same engine as your browser, so results match what JavaScript code will do.
How to use Regex Tester
- Paste the text to search into the input.
- Type your pattern in the pattern field, without slashes.
- Set flags such as g, i or m.
- Read the list of matches and groups.
Questions and answers
Which regex flavour is this?
JavaScript. Syntax from other flavours, such as lookbehind in older engines or possessive quantifiers, may behave differently or be rejected.
What do the flags mean?
g finds all matches, i ignores case, m makes ^ and $ match per line, s lets . match newlines.
Is my text uploaded?
No.