#NEWLINE# def _pure_pattern( regex ) : #NEWLINE# #INDENT# pattern = regex . pattern #NEWLINE# if pattern . startswith ( '^' ) : #NEWLINE# #INDENT# pattern = regex [ 1 : ] #NEWLINE# #UNINDENT# return pattern