What counts as a link
Anything starting with http://, https:// or www. up to the next space, quote or bracket. Trailing punctuation such as a final period, comma or closing parenthesis is trimmed, so "see https://example.com." gives https://example.com.
"Domains only" strips the protocol, www., paths and query strings, then removes duplicates: useful for auditing which sites a page links to.