public override string ToString() { return "(" + _regex + "," + (_optional ? "optional" : "required") + ")"; }