stringformatter.py
. It's part of a much longer regex, assigned to the variable _re_linkify
, that is used to linkify a number of different kinds of text. _re_linkify
is a big alternation (|
) of subpatterns that capture text into named capture groups ((?P<name>pattern)
).