def _compile_template_re(delimiters):
 tag_types = '!>&/#^'
 tag = ('\n        (?P<whitespace>[\\ \\t]*)\n        %(otag)s \\s*\n        (?:\n          (?P<change>=) \\s* (?P<delims>.+?)   \\s* = |\n          (?P<raw>{)    \\s* (?P<raw_name>.+?) \\s* } |\n          (?P<tag>[%(tag_types)s]?)  \\s* (?P<tag_key>[\\s\\S]+?)\n        )\n        \\s* %(ctag)s\n    ' % {'tag_types': tag_types, 'otag': re.escape(delimiters[0]), 'ctag': re.escape(delimiters[1])})
 return re.compile(tag, re.VERBOSE)

def _compile_template_re ( delimiters ) : tag_types = '!>&/#^' tag = ( '\n        (?P<whitespace>[\\ \\t]*)\n        %(otag)s \\s*\n        (?:\n          (?P<change>=) \\s* (?P<delims>.+?)   \\s* = |\n          (?P<raw>{)    \\s* (?P<raw_name>.+?) \\s* } |\n          (?P<tag>[%(tag_types)s]?)  \\s* (?P<tag_key>[\\s\\S]+?)\n        )\n        \\s* %(ctag)s\n    ' % { 'tag_types' : tag_types , 'otag' : re . escape ( delimiters [ 0 ] ) , 'ctag' : re . escape ( delimiters [ 1 ] ) } ) return re . compile ( tag , re . VERBOSE )
return a regular expression object instance .