Overview
Regex Tester is an easy and free online tool that runs in your browser.
.
Any character
\d
Digit (0-9)
\w
Word character
\s
Whitespace
*
Zero or more
+
One or more
?
Zero or one
{n,m}
Between n and m
^
Start of string
$
End of string
\b
Word boundary
()
Capturing group
(?:)
Non-capturing
[abc]
Character set
[^abc]
Negated set
Test and validate regular expressions with real-time matching, syntax highlighting, and common patterns library. Free online regex tester for developers.
Developer Tools
This browser-based tool is designed to be fast, easy to use, and private by default. Open the tool, adjust the settings, and get results instantly without creating an account or sending files to a server.
Everything runs locally in the browser whenever possible, which reduces friction for users and makes the page more useful as a direct-answer landing page from search.
The following topics are closely related to this tool and help explain what it is for:
Enter a pattern in the /.../ box, choose flags (g/i/m/s), then paste a test string to see real-time matches and highlighting.
g = global (find all matches), i = ignore case, m = multiline (^/$ match per line), s = dotAll (. matches newlines).
It uses JavaScript regular expressions. If your pattern has a syntax error or uses unsupported features, the status will show invalid with an error.