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 many types of state management are there in asp net?

1021


What is virtual directory in asp.net?

1040


What is query string?

999


Is it possible to migrate visual interdev design-time controls to asp.net?

1045


How do you secure your configuration files to be accessed remotely by unauthorized users?

1104


What is a web based system?

967


What is the request flow used for asp.net mvc framework? : asp.net mvc

983


What is the full form of asp.net?

1031


What is Model-View-View Model?

1009


What is the use of session in web application?

944


What is the function used for removing an event listener?

1022


What is ASLM?

1097


What are the best practices to follow to secure connection strings in an ASP.NET web application?

1040


What is web api and why to use it?

1054


How can you register a custom server control to a web page?

986