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
Is it true that a Web service must be written in .NET or not?
What is difference between inproc and outproc?
Which method do you use to kill explicitly a users session?
How does a web application session work?
Explain the difference between Repeater and Data list control in ASP.NET?
Differentiate between structure and class.
What is inheritance and an how it be used, example with an example?
What is the difference between file-based dependency and key-based dependency?
Explain security types in asp.net?
How you can access the values from the Repeater control in ASP.NET?
What is asp.net mvc? : asp.net mvc
What is autopostback true?
what are configuration files?
What is application variable in asp.net?
How will you do Redo and Undo in a TextControl?