Regex Tester & Builder
The most beginner-friendly and developer-friendly Regex Playground on the internet. Test regular expressions with live highlighting, multi-color capture groups, replace and split modes. Learn regex with the exclusive Live Explainer that explains every token instantly. Debug failing patterns with intelligent failure analysis. Build regex without writing code using the visual builder. Browse ready-made patterns from an extensive library. All processing happens entirely in your browser — nothing leaves your device.
Regex Pattern
g — Global — find all matches, not just the firstTest Text
Live Highlighting
Live Explainer
Type a regex pattern to see explanations
Quick Examples
Load pre-built examples to see how regex works.
Email Extraction
[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}URL Finder
https?://[\w.-]+(:\d+)?(/[\w./%-]*)?Phone Numbers
\+?\d[\d -]{7,}\dDate Extraction
\b\d{4}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[12]\d|3[01])\bHex Colors
#[0-9a-fA-F]{3}(?:[0-9a-fA-F]{3})?\bHTML Tags
<[^>]*>Frequently Asked Questions
What is a regular expression (regex)?
Is my data sent to a server?
How does the Live Explainer work?
How do I use capture groups?
What is catastrophic backtracking?
What's the difference between greedy and lazy matching?
Can I save my regex patterns?
What are lookaheads and lookbehinds?
What regex engine does ForgePlug use?
What does the 's' (dotAll) flag do?
Frequently Asked Questions
Everything you need to know about testing regular expressions
What is a regular expression (regex)?
Is my data sent to a server?
How does the Live Explainer work?
How do I use capture groups?
What is catastrophic backtracking?
What's the difference between greedy and lazy matching?
Can I save my regex patterns?
What are lookaheads and lookbehinds?
What regex engine does ForgePlug use?
What does the 's' (dotAll) flag do?
Share this tool
