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

From the given paragraph of text, write a program to match
the strings of format “Any number of numerals followed by
an underscore followed by any number of alphabets"
ex:123_abc
(Note:using regular expressions)

Answer Posted / kp

private void RegExp(string input)
{
string s = input;
Regex regexp = new Regex("^[0-9]*_[A-Za-z]*$");
if(regexp.IsMatch(input))
Console.WriteLine("Matched");
else
Console.WriteLine("Not Match");
}

Is This Answer Correct ?    19 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the security types in asp.net?

1000


Is asp.net easy to learn?

965


Explain login control and form authentication.

959


Describe how ASP.NET maintains process isolation for each Web application?

1022


What is the default Orientation property in a Menu control?

994


Elaborate differentiation between Cache and Application?

924


What are the differences between clr & cts?

1000


Why do I get error message "could not load type" whenever I browse to my asp.net web site?

1100


Where do the cookie state and session state information be stored?

878


What is validation in asp.net?

1008


What symbol specifies the beginning of a query string?

875


What is GAC in ASP.NET 2.0

1084


What’s the use of “GLOBAL.ASAX” file?

1030


What is server redirect?

943


What is the difference between viewstate and hidden field in asp.net?

987