I need a regular expression pattern to verify string does not contain only white spaces(blank with multiple space only)(Ex: " ".length = 4) and should not contain !@$#%^&*() characters.
Regex regex = new Regex(@".\S+."); This one checks for white spaces. I need both condition in one Regex pattern.
Result
---------
- " " : false
- "ad af" : true
- " asd asd " : true
- " asdf " : true
- "asdf@df dsfs " : false
- " # " : false