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
A web service can only be written in .net? State whether true or false.
Explain how asp.net different from asp?
What is difference between session and cookies?
How you can access the properties and controls of master pages from content pages?
Explain Features in ASP.NET
What is side-by-side execution? Can two applications, one using a private assembly and other using a shared assembly, be stated as side-by-side executables?
Are there any resources for drop-in replacements for the default css that comes with the ASP.NET Website template?
Define caching.
What are server side controls?
Explain the concept of MVC Scaffolding?
What is the file extension of web service?
What are the advantages of Web API?
code for "For every 5days system has to create 1text file with the corresponding date and it has to store in c-drive" by using web applications
Can you explain page lifecycle in net?
In a Repeater control how one can provide an alternating color scheme ?