Regex101: An Online Sandbox That Explains Step by Step Why Your Regular Expression BrokeBrief · digest for November 20
Brief≈ 1 min

Regex101: An Online Sandbox That Explains Step by Step Why Your Regular Expression Broke

Regular expressions are easy to write and painful to read a week later. Instead of guessing why a pattern silently matches nothing, you can open the free Regex101 sandbox right in your browser.

Paste your expression and sample text, and you get an X-ray view of what happens. On the right, the tool breaks down every token and flag, while highlighting matches and capture groups—the parts in parentheses (...) that extract pieces of a string.

# Named capture groups for "2026-11-20 #ORD-4821"
# date extracts the date, and order extracts the order ID
(?<date>\d{4}-\d{2}-\d{2})\s+#(?<order>ORD-\d+)

With an example like this, you see right away what lands in date and order. If a pattern slows down, the built-in Regex Debugger walks through matching step by step and exposes catastrophic backtracking. Next to it, Unit Tests help verify edits and Code Generator exports snippets for your language.

Another big plus is switching engines: besides the default PCRE2, you get JavaScript, Python, Go, Java, .NET, Rust, and POSIX ERE/BRE (handy for PostgreSQL). Just don't paste real tokens or personal data from production logs into a public site—use anonymized samples.

Want a deep diveVotes help us choose what to break down in detail. This material has 0 votes.
Sources · 2