Regex Tester Online Free

Test regular expressions against sample text and see every match highlighted live.

2 matches

  • @9 hello@clixotools.com
  • @33 support@example.org

How to use this tool

  1. 1Type your regular expression into the pattern field.
  2. 2Set the flags you need, such as global, case-insensitive or multiline.
  3. 3Paste sample text underneath.
  4. 4See matches highlighted and inspect the capture groups.

About this tool

Regular expressions are written by trial and error even by people who use them daily, because a pattern that looks right frequently is not. A quantifier turns out to be greedy when you needed it lazy, a dot matches more than intended, an escaped character was not actually escaped. Testing against real sample text with live highlighting turns that guesswork into something you can see: change one character in the pattern and watch which matches appear or vanish. Capture groups are shown separately, which is what you need when the point of the pattern is extraction rather than matching — pulling dates out of log lines, IDs out of URLs, or fields out of a messy CSV. Test with awkward edge cases, not just the happy path, before shipping a pattern into validation code.

Frequently Asked Questions

Which regex flavour is used?

+

JavaScript regular expressions, which is what runs in browsers and Node. Most patterns are portable, but lookbehind and named groups vary by language.

What does the global flag do?

+

Without it, only the first match is found. With it, the pattern continues scanning for every match in the text.

How do I match a literal dot?

+

Escape it as backslash-dot. An unescaped dot matches almost any character.

Related Tools