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.