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 / thanvir
private void RegExp(string input)
{
string s = input;
Regex regexp = new Regex("^[0-9]*_[A-Za-z]*$");
if(regexp.IsMatch(input))
Console.WriteLine("Matched");
else
Console.WriteLine("Not Match");
}
| Is This Answer Correct ? | 3 Yes | 2 No |
Post New Answer View All Answers
What is asp.net and ado net?
what is command line compiler.what are the steps and how it is related to debugging.
Whta are the Various steps taken to optimize a web based application (caching, stored procedure etc.) ?
Define a static class?
In which event are the controls fully loaded?
How can I open ashx file in mobile?
Explain Optimization technique description?
Describe how to implement globalization and localization in the use interface in .net.
How to register exception filter globally?
Explain about the .NET framework?
What is the Difference between MVC And MVP design pattrens
If I am developing an application that must accomodate multiple security levels though secure login and my asp.net web application is spanned across three web-servers (using round-robin load balancing). What would be the best approach to maintain login-in state for the users?
When should I use server transfer and response redirect?
Why do we use asp.net?
Explain what is an assembly?