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

How does output caching work in ASP.NET?

944


What tags do you need to add within the asp:datagrid tags to bind columns manually? How?

981


How to change Master page in ASP.Net using code?

1077


Can I have a unique key as foreign key?

963


Which property is used to identify the Page is Post Back in ASP.NET?

1022


How do you declare static variable?

1040


If you want to write your own dot net language, what steps you will you take care?

1086


How to use multiple scriptmanager controls in a web page?

1111


What is the advantage of using Windows authentication in a Web application?

1107


How would ASP and ASP.NET applications run at the same time on the same server?

2511


What is the maximum amount of memory any single process on windows can address?

1037


What are the cookies types in asp.net?

1015


What is http pipeline in asp.net?

979


Does web services support data reader like pom project?

946


What is the use of session?

936