Regex Tester

Test regular expressions against sample input with live match highlighting.

2 matches
#MatchGroups
1hello@promptfoo.techhello, promptfoo.tech
2team@example.comteam, example.com
Runs entirely in your browser — nothing you paste is sent to a server.

About this tool

A live regex playground. Type an expression, paste sample text, and see matches highlighted immediately — with capture groups broken out.

How it works

  1. Enter the pattern and flags (g, i, m, s, u).
  2. Paste text into the sample area.
  3. Matches are highlighted; the sidebar lists each match with its capture groups.

When to use it

  • Extracting fields from LLM output before parsing.
  • Building URL/route matchers.
  • Validating user input in a form.

FAQs

Related resources