$bits = preg_split('#((?:https?|ftp)://[^\s\'"<>()]+)#S', $token->data, -1, PREG_SPLIT_DELIM_CAPTURE);
Say,I'm trying to match urls that need to be linkified.The above is too permissive.
I want to only match simple urls like http://google.com
, but not <a href="http://google.com">http://google.com</a>
, or <iframe src="http://google.com"></iframe>