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 / kp
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 ? | 19 Yes | 2 No |
Post New Answer View All Answers
What kind of data we can store in viewstate?
Why is asp.net so popular?
What are Authentication and Authorization?
What's the use of response.output.write()?
i have 3+ exp in .net? i am going interview now but they asked me do you know any TOOL? which tool will i study please refer me?
Where code pages are used?
Which platform does Microsoft .NET use for exchanging data between applications?
Explain diff. Between friend and protected friend?
What are session and cookies?
What is authentication in asp.net?
How can you dynamically add user controls to a page?
What is marshalling ? Is it a part of asp.net ?
How we can force all the validation controls to run?
How do you use viewstate?
Which library is used by the testers and developers to develop automated tests and create testing tools?