How to check if it contains characters other than letters, numbers and some ASCII special characters?
Posted: 12 Feb 2020, 11:51
How to check if it contains characters other than letters, numbers and some ASCII special characters?
a-z A-Z
0-9
space!#$%&'()\+,-.:;=@[\]^_`{}
Such as checking if it contains :
/ * ? " < > |
Non-ASCII characters
What went wrong with this regular expression?
a-z A-Z
0-9
space!#$%&'()\+,-.:;=@[\]^_`{}
Such as checking if it contains :
/ * ? " < > |
Non-ASCII characters
Code: Select all
str := "a1*"
MsgBox % InStr(str, "[^ !#\$%&'\(\)\+,-\.:;=@\[\\\]\^_`\{}~0-9a-zA-Z]")