Login
From:
2ality – JavaScript and more
(Uncensored)
subscribe
ECMAScript proposal: RegExp escaping
https://2ality.com/2025/01/regexp-escape.html
links
backlinks
Roast topics
Find topics
Find it!
The ECMAScript proposal “RegExp escaping” (by Jordan Harband and Kevin Gibbons) specifies a function RegExp.escape() that, given a string text, creates an escaped version that matches text – if interpreted as a regular expression.