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

What is the name of the scripting engine that powers PHP?

1229


What does the scope of variables means?

1010


Explain type casting and type juggling.

1020


Explain Type hinting in PHP?

1012


How to store the uploaded file to the final location?

989


Explain what is the function file_get_contents() usefull for?

952


How to generate a character from an ascii value?

1186


How to turn on the session support?

1086


Explain the difference between $message and $$message?

982


How can we check the value of a given variable is a number?

1070


What are form input html tags?

974


What is the use of array_count_values() in php?

1017


Could we start a variable with number like $4name?

908


Can we embedded directly PHP code into XHTML document? State Whether True or False?

1780


How to update memcached when you make changes to php?

962