Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How can we extract string ‘abc.com ‘ from a string
info@abc.com" target="_blank">http://info@abc.com using
regular expression of php?

Answer Posted / simlu_irtt

$string1="info@abc.com";
$string2=split("@",$string1);
print_r($string2);

this code print the string as abc.com

Is This Answer Correct ?    6 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to redirect https to http url and vice versa in .htaccess?

926


What is composer used for?

895


What is beforeRender() used?

1001


Explain the difference between require() and require_once()?

900


Why are sessions used?

897


Tell me what's the difference between include and require?

933


Tell me what is htaccess?

862


How can a cross-site scripting attack be prevented by php?

933


How many types of array are there in php?

1017


How can MYSQL functions be available with PHP?

951


What is the role of the .htaccess file in php?

901


What are encryption functions in php?

1035


What are session variables in php?

952


How do you end a function in python?

970


Is key in array php?

948