RegEx Tester & Builder
Type a regex pattern. See all matches highlighted in real-time. Capture groups shown with different colors. Match count, positions, and statistics displayed instantly. Pattern library has common regexes: email, URL, phone, dates, IPs. Find & replace with backreferences and named groups. Pattern explainer breaks down what each part does in plain English. Code generation for JavaScript, Python, Java, PHP, Ruby, Go, C#, Rust, SQL, Perl. Warns about catastrophic backtracking. Everything runs in your browser.
Use $1, $2 for capture groups, $& for full match, $` for before, $' for after
How to Use
- Type your regex pattern
- Pick flags (g, i, m, s, u, y) if needed
- Paste test text
- See matches highlighted with capture groups
- Use pattern library for common patterns
- Export code in your language
Frequently Asked Questions
Related Tools
JSON Formatter
Format messy JSON. Validate it. See errors exactly where they are. Export to TypeScript, Python, Java.
URL Encoder/Decoder & Toolkit
Encode URLs. Decode them. Parse them into parts. Manage query parameters without the headache.
Diff Checker
Compare text or code. See what changed. Split view (side-by-side) or unified view (like git diff).
Word Counter
Count words, characters, sentences, paragraphs. Calculate reading time. Check readability scores.