in reply to Re: Linkifying URLs in plain text
in thread Linkifying URLs in plain text

For adding the trailing / and extracting the host name you need a bit more logic

URI's ->canonical and ->host will do that, respectively.