I have the following regular expression which specifies characters the user is allowed to type:
@"^[A-Za-z0-9/!$%^&*()-_+[]{};:'£@#.?]*$
I know 's
' is the character class for white space, but how do I add this to the regular expression so it excludes it? I have searched for this on Stack Overflow - the questions provide solutions to exclude white space but not how to use it in an existing regular expression. If I add it like I have the other characters, it would mean 'allow white space'?
Edit: Not sure why this has been marked down? Thanks to everyone for their answers
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…