public virtual Pattern Exactly(int timesToRepeat) { _quantifiedExpression.RegEx("{" + timesToRepeat + "}"); return(_quantifiedExpression); }
public Pattern Either(Pattern firstOption, Pattern secondOption) { return(_precedingPattern.RegEx(String.Format("({0}|{1})", firstOption, secondOption))); }