I want to find all possible substrings inside a string with the following requirement: The substring starts with N, the next letter is anything but P, and the next letter is S or T
With the test string "NNSTL"
, I would like to get as results "NNS" and "NST"
Is this possible with Regex?