How would I write a regular expression (C#) which will check a given string to see if any of its characters are characters OTHER than the following:
a-z
A-Z
Æ æ Å å Ø ø - '
new Regex("[^a-zA-ZÆæÅåØø'-]")
The []
creates a character class, then ^
specifies negation, so a character matches the class if it's not one of those listed.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With