Why does my regex work in another tester but not in JavaScript?
Some popular testers, regex101 among them, offer other flavors such as PCRE, and PCRE has features JavaScript lacks - atomic groups and possessive quantifiers, for example - while flavors also differ in group syntax. This tester runs the actual JavaScript RegExp engine, so a match here is a match in your JavaScript, TypeScript or Node.js code. If the pattern is meant for another language, treat a match here as a hint, not proof.