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