JavaScript regex (ECMAScript), which covers most common patterns.
Your everyday toolkit
Developer ToolsRegex Tester
Test regular expressions against text. See all matches highlighted, capture groups, and test flags (global, case-insensitive, multiline).
Using Regex Tester well
Try a JavaScript regular expression against sample text and inspect matches before applying it elsewhere.
Example to try
Use \d+ against 'Order 42 and 73' and compare one match with global matching. Check capture groups and flags against the intended task.
What to check before relying on the result
JavaScript regex syntax differs from other engines. Pathological expressions can stall a browser on large input. Do not treat a successful regex match as complete input sanitization.
How to use Regex Tester
View largerReal workspace previewA preview of the actual tool workspace
YOU’RE EXPLORING
Enter your regex pattern
A few steps.
A whole new result.
Frequently Asked Questions
The useful details, before you get started.
g=global (find all), i=case-insensitive, m=multiline, s=dotAll (. matches newline).
Choose any question to see the details.
