RegExp.escape()

Kris Kowal kris.kowal at cixar.com
Wed Jan 4 17:03:42 PST 2012


On Sun, Jun 13, 2010 at 7:50 AM, Jordan Osete <jordan.osete at yahoo.fr> wrote:
> Hello everybody.
>
> How about standardizing something like RegExp.escape() ?
> http://simonwillison.net/2006/Jan/20/escape/
>
> It is trivial to implement, but it seems to me that this functionality
> belongs to the language - the implementation obviously knows better
> which characters must be escaped, and which ones don't need to.

+1


More information about the es-discuss mailing list