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

both the above answers are wrong....... Reg Exp should say..

new Regex("[0-9]*_[A-Za-z]*");

^ and $ mean beginning and end of a line... and the question
is to select that particular combination no matter where
they are present...... need not be entire line.

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is it true that a Web service must be written in .NET or not?

1076


What is difference between inproc and outproc?

1119


Which method do you use to kill explicitly a users session?

1038


How does a web application session work?

1054


Explain the difference between Repeater and Data list control in ASP.NET?

1078


Differentiate between structure and class.

1002


What is inheritance and an how it be used, example with an example?

1039


What is the difference between file-based dependency and key-based dependency?

1045


Explain security types in asp.net?

1086


How you can access the values from the Repeater control in ASP.NET?

1052


What is asp.net mvc? : asp.net mvc

1084


What is autopostback true?

1044


what are configuration files?

1026


What is application variable in asp.net?

905


How will you do Redo and Undo in a TextControl?

1160