"""
object User "(?P<user>.*?)" \\{
display_name \\= "(?P<first_name.*?) (?P<last_name.*?)"
groups \\= ...
"""
regex = re.compile(regex_string, re.MULTILINE)
Django parsing templates to extract variables