'Format the URL pattern for display in warning messages.'

def describe(self):

    description = "'{}'".format(self.regex.pattern)
    if getattr(self, 'name', False):
        description += "    [name='{}']".format(self.name)
    return description
