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); } }
False