Yes. The regex snippet is:
Plug it in to any regex module methods from here: http://docs.python.org/2/library/re.html
N matches a literal "N".
[^P] is a set, where the caret ("^") denotes inverse (so,
it matches anything not in the set.
[ST] is another set, where it matches either an "S" or a