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

How will create assesblies at run time?

952


Can I combine classic asp and asp.net pages?

1007


Explain how cookies work.

998


Name the namespace which is used by ado.net?

929


Why is string called immutable data type?

1005


What is the use of autowireup in asp.net?

1028


How many types cache in asp net?

1032


What is hidden field in asp.net?

1056


In a Repeater control how one can provide an alternating color scheme ?

1037


How do you design a website with multilingual support in ASP.NET ?

939


What a diffgram is, and a good use for one?

959


What are the types of session in asp.net?

932


What is application variable in asp.net?

892


What is a uri query?

973


How can you handle exceptions in asp.net?

1015