示例#1
0
 public virtual RegexPattern Exactly(int timesToRepeat)
 {
     _quantifiedExpression.RegEx("{" + timesToRepeat + "}");
     return(_quantifiedExpression);
 }
示例#2
0
 public RegexPattern Either(RegexPattern firstOption, RegexPattern secondOption)
 {
     return(_precedingRegexPattern.RegEx($"({firstOption}|{secondOption})"));
 }