Skip to content

Instantly share code, notes, and snippets.

@lgolubyev
Created May 24, 2022 16:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lgolubyev/e876a3499aaca26399bda8b9271f3892 to your computer and use it in GitHub Desktop.
Save lgolubyev/e876a3499aaca26399bda8b9271f3892 to your computer and use it in GitHub Desktop.
public class Foo
{
public Regex regex = new Regex(@"abc|def", RegexOptions.IgnoreCase);
public bool Bar(string input)
{
bool isMatch = regex.IsMatch(input);
// ..
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment