Developer Tools
Regex Tester
Test regular expressions and inspect matches and capture groups.
About this tool
Test regular expressions and inspect matches and capture groups.
What is it?
Regex is a pattern syntax used to find, validate or extract text.
How Do You Use Regex?
Enter a pattern, JavaScript flags and test text. Matches update automatically.
- Enter the values or text required by the tool.
- Choose an option or calculation mode when one is available.
- Run the tool and review the result panel.
- Copy the result if you need to use it in another application.
Examples
- ^[a-zA-Z0-9]+$
- AracBox123
Common use cases
- Debugging API requests, authentication flows and integrations.
- Preparing test data for development and QA.
- Checking a value before using it in code or documentation.
Technical details
- Patterns are evaluated with the browser JavaScript regular-expression engine.
- Flags, character classes, quantifiers, anchors and capture groups affect matches.
Related concepts
What Is Regex?
Regex is a pattern syntax used to find, validate or extract text.
Frequently Asked Questions
What are regex flags?
Flags such as g, i and m change how a regular expression searches text.
What is a capture group?
Text inside parentheses is captured as a separate match group.
Related Tools
Random String Generator
Generate cryptographically strong random character strings.
UUID Generator
Generate secure UUID v4 values with the Web Crypto API.
JSON Formatter
Format and organize JSON data for easier reading.
JSON Validator
Check whether JSON data is valid and correctly structured.
JSON Minifier
Remove unnecessary whitespace from JSON data.
URL Encoder / Decoder
Encode or decode text and URL parameters safely.