Lines Matching refs:TEMPLATE
114 "compile", "purge", "template", "escape", "I", "L", "M", "S", "X",
129 T = TEMPLATE = sre_compile.SRE_FLAG_TEMPLATE # disable backtracking
201 def template(pattern, flags=0):
202 "Compile a template pattern, returning a pattern object"
279 def _expand(pattern, match, template):
281 template = sre_parse.parse_template(template, pattern)
282 return sre_parse.expand_template(template, match)
284 def _subx(pattern, template):
286 template = _compile_repl(template, pattern)
287 if not template[0] and len(template[1]) == 1:
289 return template[1][0]
290 def filter(match, template=template):
291 return sre_parse.expand_template(template, match)