def late_proc_insanity_check(p_string):
if re.search('<STR_LIT>'.format(CLOSE_TOKEN), p_string):<EOL><INDENT>raise SanityError("<STR_LIT>"<EOL>"<STR_LIT>")<EOL><DEDENT>
This function checks if there are processes after the close token. It
searches for everything that isn't "|" or ")" after a ")" token.

Parameters
----------
p_string: str
     String with the definition of the pipeline, e.g.::
         'processA processB processC(ProcessD | ProcessE)'