I have the following regular expression
/[^a-zA-Z0-9 ]/g
I want include "
in the following piece of code
onKeyUp="this.value=this.value.replace(/[^a-zA-Z0-9"]/g,'')
I used the above regex
The problem I am facing over here is that the above regular expression allows me to include other special charaters (&
, *
, etc.) into it. How do I avoid it???