My regular expression is very slow in JS

Printable View