I want to remove all the domain names from a string excet example.com from a php string. can anyone please write the regular expression in doing it.
preg_replace("/!http://example.com[^>]+\>/i", "", $string);
but it is not working. can anyone please in this regards.
Regards,