I have the following code
// the values for the input and the pattern
// are combinations of R, NR and HR
var input = "NR|HR";
var pattern = "R";
var isMatch = Regex.IsMatch(input, pattern, RegexOptions.IgnoreCase);
this returns true because NR and HR contains an R
Is there some way I can do an exact match for R with Regular Expressions?
var containsR = input.Split('|').Contains('R')?