Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
regex = re.compile('(bug)\s+#?(\d+)', re.IGNORECASE)
content = regex.sub(
jinja2.Markup('<a href="'
'show_bug.cgi?id=\\2" '
'target="_blank">\\1 \\2</a>'),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.