Regex Tester

Test regular expression patterns against text with real-time results.

About this tool: Regex Tester

Test regular expressions against your own text with real-time results. See every match with its position, plus capture groups and named groups, and switch flags on and off.

How to use it

  1. Enter your regular expression pattern.
  2. Select the flags you need, such as global, ignore case or multiline.
  3. Paste or type the text to test against.
  4. Review the matches, positions and capture groups shown below.

Frequently asked questions

Which regex flavor does this use?
It uses the JavaScript regular expression engine built into your browser, so patterns behave the same way they do in JavaScript code.
What do the flags mean?
Global finds all matches, ignore case ignores letter case, multiline lets ^ and $ match line boundaries, dot all lets . match newlines, unicode enables full Unicode handling and sticky matches only from the last index.
Why do I see an invalid regex message?
The pattern has a syntax error, such as an unclosed bracket or group. Fix the pattern and the results update immediately.

All Tools