I\'m finding a regular expression which adheres below rules.
Allowed Characters
Alphabet : a-z / A-Z Numbers : 0-9 Special Characters : ~ @ # $ ^ &
You haven't actually asked a question, but assuming you have one, this could be your answer...
Assuming all characters, except the "Special Characters" are allowed you can write
String regex = "^[^<>'\"/;`%]*$";