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.
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.