Regex Tester
Test a regular expression against sample text and see every match highlighted, instantly, without leaving your browser.
Examples
Extracting numbers
Pattern: \d+ Flags: g Text: Order 123, ref 456
Match 1: "123" Match 2: "456"
FAQ
No. Matching runs entirely in your browser using JavaScript's native RegExp engine.
JavaScript's (ECMAScript) regex flavor — the same engine your browser and Node.js use. Syntax can differ slightly from PCRE, Python, or other flavors.
Check your flags — a pattern without the "g" flag only reports the first match, and case sensitivity depends on the "i" flag.
Related Tools
Guide
Enter a pattern, optional flags (like "g" or "i"), and test text. Every match is listed below as you submit.