What is a Regex Tester?
A regular expression (regex) is a pattern used to search, match, and manipulate text. Regex is incredibly powerful but notoriously hard to read and debug. A regex tester lets you build a pattern and immediately see what it matches against sample text, so you can iterate quickly instead of guessing.
This tool uses your browser's built-in JavaScript regex engine. As you type, matches are highlighted and capture groups are listed in real time. Nothing is sent to a server.
Common Regex Patterns
๐ง Email
[\w.+-]+@[\w-]+\.[\w.-]+๐ข Digits only
^\d+$๐ URL
https?:\/\/[^\s]+๐ Date (YYYY-MM-DD)
\d{4}-\d{2}-\d{2}Understanding Regex Flags
- g โ global: find all matches, not just the first.
- i โ ignore case: match regardless of upper/lowercase.
- m โ multiline:
^and$match line starts/ends. - s โ dotall:
.also matches newlines. - u โ unicode: enable full unicode matching.
- y โ sticky: match only from
lastIndex.
Frequently Asked Questions
Does this support capture groups?
Yes. Any parenthesized groups in your pattern are extracted and shown per match so you can confirm what each group captured.
Which regex syntax is supported?
The JavaScript (ECMAScript) flavor. Patterns that work here will behave identically in browser and Node.js code.
Is my data private?
Completely. Your pattern and test string never leave your browser โ there is no server call.