$regex
$regex :
Link-finding regex
The Horde_Text_Filter_Linkurls:: class turns all URLs in the text into hyperlinks. The regex used is adapted from John Gruber's: http://daringfireball.net/2010/07/improved_regex_for_matching_urls
Changes:
Parameters:
Copyright 2003-2017 Horde LLC (http://www.horde.org/)
See the enclosed file LICENSE for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.
_parseurl(string $url) : mixed
Handle multi-byte data since parse_url is not multibyte safe on all systems. Adapted from php.net/parse_url comments.
See https://bugs.php.net/bug.php?id=52923 for description of parse_url issues.
string | $url | The url to parse. |
The parsed url.