Regex Tester
Test JavaScript regular expressions against sample text and inspect matches, positions and capture groups.
Enter the pattern without / / characters. Example: \\b\\w{4}\\b matches four-letter words.
Test JavaScript regular expressions against sample text and inspect matches, positions and capture groups.
Enter the pattern without / / characters. Example: \\b\\w{4}\\b matches four-letter words.
It uses your browser's JavaScript RegExp engine, so syntax and flag support follow the JavaScript implementation in that browser.
That mirrors JavaScript RegExp behaviour: without the global flag, a normal exec operation returns the first match only.
Parentheses can capture parts of a match for later use. Named groups use syntax such as (?<name>...) and are shown separately when present.
A badly designed expression can take a very long time on certain input. This tool tests only when you press Test Pattern rather than rerunning on every keystroke, but complex or untrusted patterns can still be expensive.
No. Matching happens in your browser using JavaScript's RegExp engine, so Wid9et does not need to upload the text to test the expression.