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...

Write a regular expression to get the value xxx from the
string 'xxx@yyy.com'

Answer Posted / esorimer

preg_replace("/(.*)@(.*)/","\1",$string);

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between associative array and indexed array?

1061


What type of comments are supported by PHP.

979


What is full form of php? Who is the father or inventor of php?

1004


What is the role of php.ini file?

979


What does trim () do in javascript?

1012


What is trait in php?

956


Explain Type juggling?

964


How can we pass the variable through the navigation between the pages?

965


What are major variables in research?

974


What is php session id?

969


what is the use of include_once in php?

1040


What is difference between php and wordpress?

1125


What is the use of $_request variable?

997


What is the use of curl()?

1050


What are the functions to be used to get the image's properties (size, width and height)?

977