RegExp.escape()

Jordan Osete jordan.osete at yahoo.fr
Sun Jun 13 07:50:28 PDT 2010


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.

Regards,

Jordan OSETE



      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20100613/27fdea64/attachment.html>


More information about the es-discuss mailing list