Regex Editor

Test and debug regular expressions quickly.

Paste a pattern and a test string. We highlight matches, capture groups, and common mistakes in real time.

Inputs Pattern + flags
Outputs Matches + groups
Runs Locally in your browser

Regex input

Tip: Named capture groups show up as group labels when supported by your browser.

Matches

Waiting for input

Summary

--

Results

  • Waiting for pattern and text.

Regex tips

Flags matter

Use g for multiple matches and i for case-insensitive searches.

Escape carefully

Remember to escape special characters like dots and slashes.

Greedy vs lazy

Use ? to make quantifiers lazy when matching smaller chunks.