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

Does facebook use php framework?

954


How to convert strings to upper or lower cases?

966


Why delimiter is used in mysql?

1018


What is php glob?

964


What is the current stable version of php?

998


How to store the uploaded file to the final location?

947


Where are cookies stored php?

873


How to pad an array with the same value multiple times?

881


How to convert the first character to upper case?

915


Explain what is the main difference between require() and require_once()?

942


Explain the difference b/w static and dynamic websites?

951


Why shouldn't I use mysql_* functions in php?

1019


What is php simple definition?

941


What is the purpose of the php empty function?

909


What is trim function in php?

1040