API24x7

Regex Tester

Write a pattern, paste some text and see every match with its position and capture groups. Uses the JavaScript regular expression engine.

Runs in your browser. Nothing is uploaded.

How to use the Regex Tester

  1. 1Enter the pattern and flags.
  2. 2Paste the text to test.
  3. 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.