preg_match example

preg_match example
preg_match(“/^http:\/\/.+@(.+)$/”,’http://info@abc.com’,$found);


echo $found[1];
 
 it will return :abc.com