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
How will create assesblies at run time?
Can I combine classic asp and asp.net pages?
Explain how cookies work.
Name the namespace which is used by ado.net?
Why is string called immutable data type?
What is the use of autowireup in asp.net?
How many types cache in asp net?
What is hidden field in asp.net?
In a Repeater control how one can provide an alternating color scheme ?
How do you design a website with multilingual support in ASP.NET ?
What a diffgram is, and a good use for one?
What are the types of session in asp.net?
What is application variable in asp.net?
What is a uri query?
How can you handle exceptions in asp.net?