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 / arun

set chk "xxx@yyy.com"

if {[regexp {([a-z]+)} $chk match one ]} {

puts $one
}

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the syntax for ‘foreach’ loop with example.

946


How to set a value in session? How to remove data from a session?

974


What is the alternative structure for control structures?

1072


What is session php?

937


How do I stop php artisan serve in windows?

943


How to calculate the length of a string?

1094


How to remove the new line character from the end of a text line?

981


What are advantages of .htaccess?

942


What is strcmp () in php?

965


What is $_ env in php?

975


Do csrf tokens expire?

964


How to remove a file?

1113


What does $_env means?

919


Explain me is multiple inheritance supported in php?

1052


What's php?

1062