I'm trying to create a regular expression that matches words with the following condition:
- Match words which can contain characters like: æøå, and numbers.
- If a word contains any of the following characters, it is invalid:
+ - & | ! ( ) { } [ ] ^ " ~ * ? : \
So for example these words are okay:
testæøå
test12
12test
But these should fail:
t+st
te&st