Lines Matching refs:template
110 "compile", "purge", "template", "escape", "I", "L", "M", "S", "X",
125 T = TEMPLATE = sre_compile.SRE_FLAG_TEMPLATE # disable backtracking
197 def template(pattern, flags=0):
198 "Compile a template pattern, returning a pattern object"
263 def _expand(pattern, match, template):
265 template = sre_parse.parse_template(template, pattern)
266 return sre_parse.expand_template(template, match)
268 def _subx(pattern, template):
270 template = _compile_repl(template, pattern)
271 if not template[0] and len(template[1]) == 1:
273 return template[1][0]
274 def filter(match, template=template):
275 return sre_parse.expand_template(template, match)