I’m trying to check if a string, only one character long, is an alpha character, but not matching a special subset of them. What I’m looking for is a char that is in the range [a-zA-Z] but not matching any of n, N, e, E, w, W, s, S.
What little I currently know of regular expressions has led me to formulate the following, which doesn’t work
[a-zA-Z][^nsewNSEW]
What regex do I need to achieve this?
You are currently trying to match a string two characters long. How about using a negative lookahead instead?
A non lookahead alternative is: