Regex regex = new Regex(@"a|b"); Match match = regex.Match(line); if (match.Success) { }
if (match1.Success) { } if (match2.Success) { }
(?<GroupA>a)|(?<GroupB>b)
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)