<!-- m --><a href='ftp://ftp.example.com' rel='nofollow'>ftp://ftp.example.com</a><!-- m -->

<!-- w --><a href='http://www.example.com' rel='nofollow'>www.example.com</a><!-- w -->

<!-- e --><a href='mailto:user@example.com' rel='nofollow'>user@example.com</a><!-- e -->

Boundary test
Link to <!-- m --><a href='http://example.com/path:1/hello' rel='nofollow'>http://example.com/path:1/hello</a><!-- m -->: the colon should be excluded.
Link to (<!-- m --><a href='http://example.com/path:1/hello' rel='nofollow'>http://example.com/path:1/hello</a><!-- m -->): the parentheses and colon should be excluded.
Link (to <!-- m --><a href='http://example.com/path:1/hello' rel='nofollow'>http://example.com/path:1/hello</a><!-- m -->). The parentheses and period should be excluded.
Link to &lt;<!-- m --><a href='http://example.com/path:1/hello' rel='nofollow'>http://example.com/path:1/hello</a><!-- m -->&gt; The angle brackets should be excluded.
Link to <!-- m --><a href='http://example.com/path:1/hello&gt;world' rel='nofollow'>http://example.com/path:1/hello&gt;world</a><!-- m --> The angle brackets should be included.

Relative test
Link to <!-- m --><a href='http://localhost/path:1/hello' rel='nofollow'>path:1/hello</a><!-- m --> the domain part should be excluded.

At start of a block tag
[quote:1]<!-- m --><a href='https://example.com' rel='nofollow'>https://example.com</a><!-- m --> test[/quote:1]

At end of a block tag
[quote:1]Test: <!-- m --><a href='https://example.com' rel='nofollow'>https://example.com</a><!-- m -->[/quote:1]

Alone in a block tag
[quote:1]<!-- m --><a href='https://example.com' rel='nofollow'>https://example.com</a><!-- m -->[/quote:1]

At start of an inline tag
[b:1]<!-- m --><a href='https://example.com' rel='nofollow'>https://example.com</a><!-- m --> test[/b:1]

At end of an inline tag
[b:1]Test: <!-- m --><a href='https://example.com' rel='nofollow'>https://example.com</a><!-- m -->[/b:1]

Alone in an inline tag
[b:1]<!-- m --><a href='https://example.com' rel='nofollow'>https://example.com</a><!-- m -->[/b:1]
