ftp://ftp.example.com

www.example.com

user@example.com

Boundary test
Link to http://example.com/path:1/hello: the colon should be excluded.
Link to (http://example.com/path:1/hello): the parentheses and colon should be excluded.
Link (to http://example.com/path:1/hello). The parentheses and period should be excluded.
Link to <http://example.com/path:1/hello> The angle brackets should be excluded.
Link to http://example.com/path:1/hello>world The angle brackets should be included.

Relative test
Link to path:1/hello the domain part should be excluded.

At start of a block tag
https://example.com test
At end of a block tag
Test: https://example.com
Alone in a block tag
https://example.com
At start of an inline tag
https://example.com test

At end of an inline tag
Test: https://example.com

Alone in an inline tag
https://example.com