Regex Tester
Test regular expressions with live match highlighting.
Runs entirely in your browser
//g
2 matches
hi alice@example.com and bob@rizo.top
| # | Index | Match | Groups |
|---|---|---|---|
| 0 | 3 | alice@example.com | $1=alice$2=example.com |
| 1 | 25 | bob@rizo.top | $1=bob$2=rizo.top |
FAQ
- Does the tool prevent ReDoS?
- There's no hard timeout — JavaScript regex is synchronous. Runaway patterns can hang the tab. Prefer possessive alternations and avoid nested quantifiers on shared input.
- Are named groups supported?
- Yes. Any (?<name>…) shows up under 'named groups' in the match table.
- How many matches are shown?
- Up to 1000 to keep the UI responsive.
Related tools
- SQL Formatter
Format SQL for many dialects (PostgreSQL, MySQL, SQLite, T-SQL, PL/SQL, BigQuery…).
- HTML Formatter
Format HTML with Prettier — configurable print width and indent.
- CSS Formatter
Format CSS with Prettier — configurable print width and indent.
- Markdown Preview
Live GFM Markdown preview with syntax-safe HTML rendering.