The following code can find www.google.com.I want to find google.com too ie domain name after space.
$s = 'is www.google.com equal to google.com ';
preg_match_all ("/(www)(.*)(.com|.info|.pk)/U", $s , $ma);
print_r($ma);
The following code can find www.google.com.I want to find google.com too ie domain name after space.
$s = 'is www.google.com equal to google.com ';
preg_match_all ("/(www)(.*)(.com|.info|.pk)/U", $s , $ma);
print_r($ma);