UTILS.
Private by default
.*

Regex Tester

Test a regular expression against text and highlight every match.

Your files stay on this device

Files are processed in your browser, never uploaded. The site downloads code and assets to run the tools. No accounts or trackers.

Use Download to save this tool as one HTML file for offline use.

Privacy →
—

JavaScript regular expressions. Processing stops after two seconds or 5,000 matches. Match positions count UTF-16 code units.

About this tool

Build and test JavaScript regular expressions against sample text with live match highlighting and a match count. Set flags like g, i and m. A fast way to get a pattern right before pasting it into code.

JavaScript regular expressions. Processing stops after two seconds or 5,000 matches. Match positions count UTF-16 code units.

Frequently asked questions

Which regex flavour is this?
JavaScript (ECMAScript) regular expressions, using the same engine your browser and Node.js use.
What do the flags mean?
g matches all occurrences, i is case-insensitive, m makes ^ and $ match line boundaries.

More tools