I\'m finding a regular expression which adheres below rules.
Allowed Characters
Alphabet : a-z / A-Z Numbers : 0-9 Special Characters : ~ @ # $ ^ &
[a-zA-Z0-9~@#\^\$&\*\(\)-_\+=\[\]\{\}\|\\,\.\?\s]*
This would do the matching, if you only want to allow that just wrap it in ^$ or any other delimiters that you see appropriate, if you do this no specific disallow logic is needed.