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

What is recordset asp?

539


What are the difference between overriding and overloading?

498


What are Master Pages in ASP.NET?

571


In which event are the controls fully loaded?

566


What is web api config?

542






Is asp.net different from asp? If yes, explain how?

494


How many types of session state management options available in asp.net?

536


What is the concepts of globalization and localization in .net?

528


How will you do windows authentication and what is the namespace? If a user is logged under integrated windows authentication mode, but he is still not able to logon, what might be the possible cause for this? In ASP.Net application how do you find the name of the logged in person under windows authentication?

545


Describe the master page.

554


Which namespace is used by ado.net?

562


How asp.net mvc differs from asp.net web forms? : asp.net mvc

546


How can we Validate a Controls in ASP.NET page using JavaScript?

628


What are query strings used for?

529


How do you use viewstate?

552