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 LINQ performance wise better or using sqlcommand?

4337


How do http sessions work?

508


Why is global asax is used?

614


What are asp.net web forms?

523


What is preprocessor in .net and type, where it use?

662






Dataset is the disconnected environment. suppose if you are binding records to gridview (disconnected environment) and you are making changes to the the grid but before updating the database if any other user modify the data, how will you avoid such problem?

1721


Why is the standalone environment only useful during the development process?

1343


How can we inherit a static variable?

546


What are validator? Name the validation controls in asp.net? How do you disable them? Will the asp.net validators run in server side or client side? How do you do client-side validation in .net? How to disable validator control by client side javascript?

554


What is Difference between Production Serves and Development Servers? And Suppose, m adding/deleting C# file in a project based on the Specific Requirement. These Files are Automatically updated in Production Servers? So Which tool is needed to do This One?

1513


How does ASP.NET framework maps client side events to Server side events.?

555


A Web Service Can Only Be Written In .net. Is it True??

643


Explain MVC model binders?

600


Differentiate between client-side and server-side validations in web pages.

565


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

617