Passing Options
suggest changepublic bool Check()
{
string input = "Hello World!";
string pattern = @"H.ll. W.rld!";
// true
return Regex.IsMatch(input, pattern, RegexOptions.IgnoreCase | RegexOptions.Singleline);
}
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents