Test and debug your Regular Expressions in real-time. Analyze matches, capture groups, and validate patterns instantly.
Enter your regex pattern without slashes /.../'
Flags
Enter the text you want to test against
MATCH PREVIEW & HIGHLIGHTS
No matches found for the current pattern.
Character Classes
. | Any character except newline |
\w | Word char (a-z, A-Z, 0-9, _) |
\d | Digit (0-9) |
\s | Whitespace (space, tab, newline) |
[abc] | Match a, b, or c |
[^abc] | Not a, b, or c |
Quantifiers
* | 0 or more |
+ | 1 or more |
? | 0 or 1 |
{3} | Exactly 3 |
{3,} | 3 or more |
Embed this tool on your site
Free · No account or API key required · 100% client-side
Regular expressions, commonly known as Regex, are powerful tools used by developers and data analysts to search, match, and manipulate text strings based on specific patterns. Whether you are validating email addresses, extracting dates from logs, or cleaning up messy data, regex is an indispensable skill in modern programming.
Writing complex regex patterns can be challenging. A single misplaced character can break your entire validation logic. This Real-time Regex Tester provides an instant feedback loop, allowing you to:
global (g) and case-insensitive (i) to see how they affect your search scope.Email Validation
^[\w-\.]+@([\w-]+\.)+[\w-]{2,4}$Matches standard email formats like [email protected].
Date Format (YYYY-MM-DD)
^\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01])$Validates ISO 8601 date strings.
Strong Password
^(?=.*[A-Za-z])(?=.*\d)[A-Za-z\d]{8,}$Enforces min 8 chars with at least one letter and one number.
Hex Color Code
^#?([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$Matches valid hex color strings like #fff or #000000.
Note: The Javascript regex engine is used for all validations on this page. Some advanced features available in PCRE or Python regex implementations may not be supported.
Hello, world!
Hello
Matches the word Hello
123-456-7890
123-456-7890
Matches the phone number
4111-1111-1111-1111
4111-1111-1111-1111
Matches the credit card number
A regex pattern is a string of characters that defines a search pattern.
Enter a regex pattern and test string, then click to run the test.
The cheat sheet provides a reference for regex syntax and constructs.
Yes, the Regex Tester can handle large datasets.
Yes, the Regex Tester is free to use.
Use the Regex Tester to test and refine your patterns for better performance.
The Regex Tester supports most programming languages, including JavaScript, Python, and Java.
What it is
A Regex Tester is a tool that runs a regular expression against sample text and highlights every match, capture group, and position. Utified Regex Tester runs entirely in your browser with the JavaScript regex engine.
Cost
Free, unlimited
Engine
JavaScript (V8)
Flags
g, i, m, s, u, y
Display
Live match highlighting
When to use it
How to use it
Type your pattern
Enter the regex without delimiters. Toggle flags (g, i, m, s) as needed.
Paste sample text
Drop the text you want to test against. Matches highlight live as you type.
Inspect captures
Numbered + named capture groups are listed below with their match positions.
100% client-side. Your pattern and test text never leave the browser.