ToolPatch

One page. One job. Done.

← Back to all tools
Developer Tools

Regex Tester

Test regular expressions with flags, matches, and capture groups.

Last validated: 2026-02-14

Regex Tester lets you execute regular expressions against sample text and inspect matches with exact positions and capture groups. It is useful for parser development, input validation, and troubleshooting production patterns before shipping changes. You can toggle common flags (`i`, `m`, `x`) to validate behavior under different matching modes. The tool surfaces compile errors immediately and lists each match boundary, which helps debug greedy patterns and group logic. Use it to harden patterns safely before embedding them in application code.

Permalink

Input Pattern

Enter values in the left panel, keep units explicit, run the calculation, then copy or share the result. Invalid fields are highlighted immediately.

Regex Tester

Matches

Total matches: 0

No matches found.

How to use this tool

  1. Enter a regex pattern, set optional flags, and provide test text.
  2. Click `Run Regex` to compile and execute the pattern.
  3. Inspect match ranges and captures, then refine the pattern until results are correct.

Worked Example

Auto-generated from the tool's current default or entered inputs.

Example Inputs

  • Pattern: \b[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}\b
  • Test text: Send reports to ops@example.com and admin@example.org.
  • Match count: 0

Expected Outputs

  • Match count: 0

Interpretation

Scenario Compare (A vs B)

Use this to compare two input sets and quantify change in key outputs.

Scenario A

Scenario B

Explore more versions

Tailored guides for specific audiences, regions, and scenarios.

Developer debugging tools

Promote IDE plugins, API tools, and debugging utilities.

Sponsored