Regex Tester Online
Use JavaScript RegExp syntax. Enter the pattern without leading and trailing slashes.
Test text
Matches
Text Tools
Developer Tools
Use JavaScript RegExp syntax. Enter the pattern without leading and trailing slashes.
Type a JavaScript regular expression, choose flags, paste test text and see matches instantly. Match results include indexes, matched text and numbered capture groups.
Use g for global matching, i for ignore case, m for multiline anchors, s for dot-all matching, u for Unicode mode and y for sticky matching.
The regex engine runs locally in your browser. Patterns and test text are not uploaded to a server, which makes it convenient for logs, snippets and API responses you need to inspect quickly.
\\d+. Add flags like gi in the flags field or with the checkboxes.g flag to list all matches. Without g, JavaScript returns the first match.