Use Regex to validate your input
using System;
using System.Text.RegularExpressions;
class MainClass
{
public static void Main(string[] args)
{
string regex = "your regex";
string input = "your input";
Regex r = new Regex(regex);
Console.WriteLine(r.IsMatch(input));
//or Regex.IsMatch(input, regex);
}
}
Output False
|
HTML code for linking to this page:
Related in same category :
-
-
-
-
-
-
-
-
-
-
-
|