skip to main
|
skip to sidebar
Center 4 Code
Tuesday, September 2, 2008
Validate String max length using Reguler Expression in C#
class Program
{
static void Main(string[] args)
{
if (Regex.IsMatch("[Input String]","^.{4,20}$" ))
{
Console.WriteLine("true");
}
else
{
Console.WriteLine("false");
}
Console.ReadLine();
}
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
Blog Archive
►
2009
(2)
►
August
(1)
►
May
(1)
▼
2008
(4)
►
December
(1)
▼
September
(2)
Generate Counter Image runtime
Validate String max length using Reguler Expressio...
►
May
(1)
About Me
Abhishek Hingu
View my complete profile
No comments:
Post a Comment