The browser's JavaScript regex engine
Patterns run in your browser's own JavaScript engine, inside a disposable worker. A 2.5-second deadline stops patterns that backtrack for too long, so a runaway expression cannot freeze the page. Match positions count UTF-16 code units, as JavaScript does, so an emoji can occupy two positions.
Flags
- g finds every match. Without it, only the first match is reported and replaced.
- i ignores case, m makes
^and$match at every line, and s lets.match line breaks. - u treats the pattern as Unicode code points and enables
\p{…}property classes. d asks the engine for match indices.
Replacement tokens
Replacements use native semantics: $& inserts the whole match, $1 to $99 insert numbered groups, $<name> inserts a named group and $$ writes a literal dollar sign. The preview stops at 1,000 matches; text is limited to 100,000 characters and the replacement output to 2 MB.