I am trying to make a regular expression for a string that has at least 1 non alphanumeric symbol in it
The code I am trying to use is
Regex symbolPattern = new Regex("?[!@#$%^&*()_-+=[{]};:<>|./?.]");
I'm trying to match only one of !@#$%^&*()_-+=[{]};:<>|./?.
but it doesn't seem to be working.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…