Regex Tester
Test and debug regular expressions in real time. Highlights matches, capture groups, and supports JavaScript regex flags for instant pattern validation.
Used 11.7K times today
How to Use Regex Tester
- 1
Enter your regular expression
Type your regex pattern in the expression field, including any flags (g, i, m, s, u).
- 2
Paste your test string
Enter the text you want to match against in the test string area.
- 3
Review matches and groups
All matches are highlighted in real time, and capture groups are listed with their index and matched values.
Frequently Asked Questions
Which regex flavour does this tester use?
How do I test named capture groups?
Why does my regex cause freezing?
About Regex Tester
The Regex Tester is a real-time regular expression debugger that highlights matches and capture groups as you type. Regular expressions are one of the most powerful yet complex tools in a developer's toolkit, and having an instant visual feedback loop dramatically speeds up writing and debugging patterns for input validation, log parsing, text extraction, and string manipulation.
The tester supports all modern JavaScript regex features including named capture groups, lookaheads, lookbehinds, and Unicode property escapes. Match results, group details, and match count are shown in real time, making it easy to iterate on your pattern until it behaves exactly as intended.
More Developer Tools Tools
JSON Formatter
Format, beautify, and validate JSON instantly. Paste raw JSON and get a clean, indented, human-readable output with syntax error detection.
JSON Minifier
Minify and compress JSON by removing whitespace and comments. Reduce JSON payload size instantly for faster API responses and smaller storage footprint.
JSON to CSV Converter
Convert JSON arrays to CSV format instantly. Transform nested JSON data into spreadsheet-ready CSV files with automatic header detection.
JSON to YAML Converter
Convert JSON to YAML format instantly online. Transform JSON config files, API schemas, and data structures into clean, readable YAML syntax.
Base64 Encoder / Decoder
Encode text or decode Base64 strings instantly online. Convert between plain text and Base64 encoding for data URLs, authentication headers, and API tokens.
URL Encoder / Decoder
Encode or decode URLs and query strings instantly. Convert special characters to percent-encoding and back for safe URL transmission and debugging.
HTML Encoder / Decoder
Encode special characters to HTML entities or decode HTML entities back to plain text. Prevent XSS and display HTML code safely in web pages.
UUID Generator
Generate UUID v1, v4, and v5 universally unique identifiers instantly. Create single or bulk UUIDs for databases, APIs, and distributed systems.