Hi,
For an academic assignment, I need to make a regular expression to match a word with the following specifications:
- Word length >= 1 and <= 8
- Contains letters, digits, and underscore
- First digit can only be a letter
- Word is not A,X,S,T or PC,SW
I tried this regex but can't continue (My big problem is to make the word not equal to PC and SW)
([a-zA-Z&&[^AXST]])|([a-zA-Z][\w]{0,7})
But in the previous regex I didn't handle the that it is not PC and SW
Thanks,