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