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 / ankush prasad

<?php
$string1="info@abc.com";
$string2=preg_match("/[a-c]+.[c-o]+/",$string1,$a);
print $a[0];
?>

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Tell me how is it possible to propagate a session id?

1039


What is pdo in php why use?

933


What can php do?

1017


What is a string in php?

976


What is prepared statement in php?

1064


Can we learn php without html?

994


What’s the difference between htmlentities() and htmlspecialchars()?

1091


Code to upload a file in PHP?

1032


What will the ?getdate() function returns in PHP?

1093


Explain what is smarty?

1054


What is framework in php for beginners?

986


What is advanced php programming?

1026


Can we override magic methods in php?

1012


What types of loops exist in php?

1053


Is multilevel inheritance possible in php?

962