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 web router?
Which library is used by the testers and developers to develop automated tests and create testing tools?
Write a code snippet to implement the indentation in json in web api.
What are the Types of chaching. How to implement caching
What is query string?
Why is global asax is used?
Explain the difference between debug.write and trace.write?
What is the mvc model?
what is the difference between response.write() and response.output.write()?
What is a gridview in asp.net?
Is there any property names “isnavigating”?
What is the main function of url routing system in asp.net mvc? : asp.net mvc
How you can manage the state of application at the server side in ASP.NET?
Securitywise What are the Enhancements in 2.0?
How to use a Master Database in Asp.net?