public bool IsCharSetEqual(string input, RegexNode node) { var parser = new Parser(input); var exp = parser.ParseExpression(); var sets = new FlatSet<CharRange>(); exp.NormalizeCharSet(out sets); return exp.Equals(node.Exp); }
public static RegexNode GetCapture(string name, RegexNode node) { var expression = new CaptureExpression(name, node.Exp); return(new RegexNode(expression)); }
public static RegexNode GetCapture(string name,RegexNode node) { var expression = new CaptureExpression(name, node.Exp); return new RegexNode(expression); }
public bool IsEqual(string input,RegexNode node) { var parser = new Parser(input); var exp = parser.ParseExpression(); return exp.Equals(node.Exp); }