def compileFeatureRE(name):
 featureRE = list(parser.featureContentRE)
 featureRE.insert(2, name)
 featureRE.insert(6, name)
 return re.compile(''.join(featureRE))

def compileFeatureRE ( name ) : featureRE = list ( parser . featureContentRE ) featureRE . insert ( 2 , name ) featureRE . insert ( 6 , name ) return re . compile ( '' . join ( featureRE ) )
compiles a feature-matching regex .