Пример #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})"));
 }