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 is viewstate in asp net with example?
Why session is more secure than cookies?
What are session objects?
How do you initiate validation on the server manually? What are two situations when you might you want to do that?
Define the term Web Garden?
Which is faster viewdata or viewbag?
Define caching.
What is postback in asp net?
What is cookies cache and session?
In a page I have gridview with options of select and delete using hyperlink when I am selecting any one of then it has to open another page how can it?
How we can force all the validation controls to run?
How to do parallel database export in remote SQL Server in ESSL time track. It is working for local server but not working for remote SQL Server
Is it possible to apply themes to an asp.net application? If yes, then how?
List the events in page life cycle.
What is http request and response?