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

Take a Large textbox allow to type any data. Task 1:display the count of vowels in a lable on key press event of the textbox Task 2:dispaly count of dates in a lable when dates in following foramats:dd/mm/yy , mm/dd/yy , yy/mm/dd. Task3:compare 2 dates and display both are same or not which dates are in dd/mm/yy and mm/dd/yy farmats.

2593


What is a session government?

503


What is inheritance and an how it be used, example with an example?

586


Why do we need Sessions?

578


What does passport and windows authentication mean in ASP.NET?

647






Explain the difference between value type and reference type?

261


What do you mean by role-based security?

566


What is Pre-Render event in ASP.NET?

591


What is a web based system?

464


Where is http session stored?

500


Define transparent caching with aop?

530


What is application in asp net?

492


What are the different types of proxy patterns?

595


Describe how ASP.NET maintains process isolation for each Web application?

575


What is ispostback method in asp.net?

556