Q: How to check for certain characters using regex I am trying to check for following characters in my string using regex but based on tutorials online and ]some questions on SO I havent been able to figure out a solution so far. Can anyone help. I would really appreciate it. 
Here is my string: 
0-9~!@#$%^&*()_+`-={}[]\|:";',./<>?ÀàÂâÄäÆæÇçÉéÈèÊêËëÎîÏïÔôÖöŒœßÙùÛûÜüŸÿ

I also want to allow single and double quotes in my string. So is there a way to do it. 

A: If you just want to match the presence of any of those characters in the string you can just use this.
**Updated to include ' and "
/["'\d~!@#\$%\^&\*\(\)_\+`\-=\{\}\[\]\|:";',\.\/<>\?ÀàÂâÄäÆæÇçÉéÈèÊêËëÎîÏïÔôÖöŒœßÙùÛûÜüŸÿ]/g

This is just a basic character class - http://www.regular-expressions.info/charclass.html
I would suggest you might be better to use a whitelist approach, rather than exclude characters, for example, /[^\w\s"']/g will match anything that is not " ' _ whitespace or alphanumeric 
