preg_match_all('~([http://|https://|ftp://|ftps://|www.]*[a-zA-Z0-9\.\/\-]+)\s?~i', $content, $matches);