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

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 ?    3 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between session and cookies?

968


Is it possible to write code in many languages in one asp.net project?

971


What are demand-paging and pre-paging?

948


How you can add an event handler?

920


How do we sort the data from a dataset?

912


What is http response header?

1056


Why is global asax is used for?

990


What are the security types in asp.net?

1001


Why is string called immutable data type?

995


What websites use asp.net?

982


What's the use of response.output.write()?

1219


What are the modes of updation in an updatepanel? What are triggers of an updatepanel?

925


What are the uses of list view control in Asp.net?

997


What is difference between viewstate and session state in javascript?

1051


Explain the steps needed to be performed in order to create an animation in xaml?

962