Possible Duplicates:
Best methods to parse HTML with PHP
PHP Linkify Links In Content
I want to parse html to find links, but i want not only to find links like http://www.aaa.com, but also links like www.apple.com or just apple.com. I dont wand to find a tags. I want to find links in user input text.