Folks,
I have to match the following pattern:
First letter must be N Second any letter except P Third have to be S or T and the Fourth any letter except P again.
The string is only capital letters, no number, white spaces, etc.
So using python this is what I got so far:
import re
strRegex = r"N[^P][ST][^P]"
objRegex = re.compile(strRegex)
print objRegex.findall('NNSTL')
This will print: NNST
What I expect is: NNST and NSTL
Thanks