public static string Interpret(string regex)
        {
            RegexBuffer     buffer     = new RegexBuffer(regex);
            RegexExpression expression = new RegexExpression(buffer);

            return(expression.ToString(0));
        }
Example #2
0
 public RegexConditional(RegexBuffer buffer)
 {
     this.startLocation = buffer.Offset;
     this.expression    = new RegexExpression(buffer);
     this.CheckClosingParen(buffer);
     this.yesNo = new RegexExpression(buffer);
     this.CheckClosingParen(buffer);
     buffer.AddLookup(this, this.startLocation, buffer.Offset - 1);
 }