Regex tester

Test a regular expression against sample text and see the matches.

Writing a regular expression is a loop of guess, run, and squint at what matched. This shortens the loop: type the pattern, paste some sample text, and see the matches highlighted straight away instead of re-running a script each time.

How Regex tester works

  1. Enter or paste your text or values.
  2. It's processed instantly on your device as you type.
  3. Copy or download the result.

Good to know: It uses the browser's own JavaScript regex engine, so what matches here is exactly what will match in JavaScript. That also means JS syntax specifically — PCRE, Python, and Go each differ in the corners (lookbehind, named groups, escapes), so don't assume a pattern transfers unchanged.