Lines Matching refs:TEMPLATE
135 "findall", "finditer", "compile", "purge", "template", "escape",
159 TEMPLATE = sre_compile.SRE_FLAG_TEMPLATE # disable backtracking
160 T = TEMPLATE
241 def template(pattern, flags=0):
242 "Compile a template pattern, returning a Pattern object"
302 def _expand(pattern, match, template):
304 template = sre_parse.parse_template(template, pattern)
305 return sre_parse.expand_template(template, match)
307 def _subx(pattern, template):
309 template = _compile_repl(template, pattern)
310 if not template[0] and len(template[1]) == 1:
312 return template[1][0]
313 def filter(match, template=template):
314 return sre_parse.expand_template(template, match)