Hi,
I need to regex string myString to only have:
- 0-9
- A-Z or a-z
- any of these characters '!#$%&'*+-/=?^_`{|}~.
This is my code line:
new Regex("[a-zA-Z0-9]").IsMatch(myString);
So far I have [a-zA-Z0-9]
and this works fine for the first two listitems.
Currently tearing my hair out (and it's so nice I want to keep it) over metacharacters and getting nowhere.
Any help would be greatly appreciated. Thanks. Dave