I want to match an alphabet range between a and z, except x.
I am using java.util.regex
API for this.
My pattern:
[a-z^x] // here a-z shows a range between a to z and ^ means negation
Example
- If I type "a", it should match.
- If I type "x", it shouldn't match