I have a regular expression that matches three kinds of apostrophes, '’‘
. I directly pasted the last two from Microsoft word into the regex. However when I test it, my regular expression fails and when I inspect my javascript validation script in firefox, I see '’‘\
instead of '’‘
. Do I need to escape them or use the ASCII format?
Use unicode or octal codes:
/\u0022/ // matches "
/\042/ // matches "
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With