Regex Tester
Write a pattern, paste some text and see every match with its position and capture groups. Uses the JavaScript regular expression engine.
How to use the Regex Tester
- 1Enter the pattern and flags.
- 2Paste the text to test.
- 3Review each match and capture group.
Regex Tester FAQ
JavaScript (ECMAScript). Most syntax is shared with PCRE used in PHP, but lookbehind and named groups can differ.
g = all matches, i = ignore case, m = multiline anchors, s = dot matches newline, u = unicode.