[plt-dev] `regexp-quote' in JS

From: Eli Barzilay (eli at barzilay.org)
Date: Mon Nov 23 22:28:53 EST 2009

On Nov 23, Dave Herman wrote:
> > Does anyone know if there's a JS equivalent for `regexp-quote'?
> 
> http://simonwillison.net/2006/Jan/20/escape/
> 
> Simon's a bright guy. But I haven't tried this out. Just googled.

Thanks -- that looks reasonable.  But it's easier for me to just
restrict the kind of strings to pass to the function...  I just
thought that there might be some existing function to do that.

-- 
          ((lambda (x) (x x)) (lambda (x) (x x)))          Eli Barzilay:
                    http://barzilay.org/                   Maze is Life!


Posted on the dev mailing list.