Regex tester
Test a JavaScript regular expression live: matches highlighted, capture groups in a table, flags, replace, and a plain-English explanation.
Questions
Which regex flavour is this?
JavaScript, using your browser's own RegExp engine, so results match what your code will do in this browser. Other languages such as PCRE, Python or Go differ in places, for example in lookbehind support and possessive quantifiers.
What happens with a pattern that never finishes?
Matching runs in a background worker. If it takes longer than one second it is stopped and the page tells you, so a pattern with catastrophic backtracking like (a+)+$ cannot freeze the tab.
Why are the d and v flags missing?
They only appear when your browser supports them. d records group positions and v is the newer Unicode sets mode; older browsers do not have them.