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
What is recordset asp?
What are the difference between overriding and overloading?
What are Master Pages in ASP.NET?
In which event are the controls fully loaded?
What is web api config?
Is asp.net different from asp? If yes, explain how?
How many types of session state management options available in asp.net?
What is the concepts of globalization and localization in .net?
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?
Describe the master page.
Which namespace is used by ado.net?
How asp.net mvc differs from asp.net web forms? : asp.net mvc
How can we Validate a Controls in ASP.NET page using JavaScript?
What are query strings used for?
How do you use viewstate?