I'm using the following line of PHP to remove punctuation from strings:
$key = preg_replace("/\p{P}/u", "", $key);
Does anyone know how to do the same thing in Javascript/jQuery?
I know you can use jQuery's replace() like PHP's preg_replace(). I just don't know what regular expression to use.