Regex Tester
Test regular expressions against sample text and see all matches.
Assumptions used in this calculation
- Regex engine: Patterns are evaluated using JavaScript's native RegExp (ECMAScript syntax), with the global flag applied automatically to find all matches.
About this calculator
The regex tester runs a JavaScript regular expression against a test string and lists every match with its position.
Worked example
\d+ against 'abc 123 def 456'
Result: 2 matches: 123, 456
Was this helpful?