mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-07-31 20:32:20 +03:00
4 lines
148 B
JavaScript
4 lines
148 B
JavaScript
const re = /\$\$[^$]*(?:\$(?!\$)[^$]*)*\$\$/g;
|
|
const txt = "some text $$ a + b = c $$ more text $$ x + $y$ = z $$ end";
|
|
console.log(txt.match(re));
|