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 form action php?

1069


What is var_dump?

1065


How to read a file in php?

1013


Can age be a variable?

1004


What is the difference between $var and $$var?

1114


What does $_server means?

1076


What is traits? How it is used in php?

1098


What are the benefits of using queries?

1239


How do you compare strings in java?

985


How to define a function with any number of arguments?

1130


What is a collection in php?

998


What is super keyword in php?

1153


What are the two most common ways to start and finish a php block of code?

1183


What is polymorphism?

2558


Distinguish between urlencode and urldecode?

1053