public RegexBuilder Clone() { var clone = new RegexBuilder(this._options); clone._groups.AddRange(this._groups); foreach (var group in this._unterminatedGroups.Reverse()) { clone._unterminatedGroups.Push(group); } return(clone); }
public RegexBuilder Concat(RegexBuilder other) { this._groups.AddRange(other._groups); return(this); }