/// <summary>
        /// Add an existing <see cref="RegexPositiveLookbehindAssertionNode"/> to the generator.
        /// </summary>
        /// <param name="group"><see cref="RegexPositiveLookbehindAssertionNode"/> to be added.</param>
        /// <returns><see cref="RegexGenerator"/></returns>
        /// <exception cref="PositiveLookbehindAssertionNotSupportedException">Positive lookbehind assertion is not supported by <see cref="RegexLanguage"/>.</exception>
        public RegexGenerator AddPositiveLookbehindAssertion(RegexPositiveLookbehindAssertionNode positiveLookbehnidAssertion)
        {
            if (!IsPositiveLookbehindAssertionSupported)
            {
                throw new PositiveLookbehindAssertionNotSupportedException(RegexLanguage);
            }

            return(Add(positiveLookbehnidAssertion));
        }
        public virtual string ToPositiveLookbehindAssertionString(RegexPositiveLookbehindAssertionNode positiveLookbehindAssertion)
        {
            if (!IsPositiveLookbehindAssertionSupported)
            {
                throw new PositiveLookbehindAssertionNotSupportedException(RegexLanguage);
            }
            if (positiveLookbehindAssertion == null)
            {
                throw new ArgumentNullException(nameof(positiveLookbehindAssertion));
            }

            var sb = new StringBuilder();

            sb.Append(ToTokenString(RegexToken.PositiveLookbehindAssertionOpen))
            .Append(positiveLookbehindAssertion.IsInnerNodeIncluded ? ToString(positiveLookbehindAssertion.InnerNode) : positiveLookbehindAssertion.Pattern)
            .Append(ToTokenString(RegexToken.PositiveLookbehindAssertionClose));

            return(AddQuantifier(sb.ToString(), positiveLookbehindAssertion.Minimum, positiveLookbehindAssertion.Maximum, positiveLookbehindAssertion.RegexQuantifierOption));
        }
        /// <summary>
        /// Create and add <see cref="RegexPositiveLookbehindAssertionNode"/> to the generator, and include another <see cref="RegexNode"/> inside.
        /// </summary>
        /// <param name="innerNode">An existing <see cref="RegexNode"/> to be included.</param>
        /// <param name="min">Optional minimum number of occurance.</param>
        /// <param name="max">Optional maximum number of occurance.</param>
        /// <param name="quantifierOption">Optional quantifier option.</param>
        /// <returns><see cref="RegexGenerator"/></returns>
        /// <exception cref="PositiveLookbehindAssertionNotSupportedException">Positive lookbehind assertion is not supported by <see cref="RegexLanguage"/>.</exception>
        public RegexGenerator AddPositiveLookbehindAssertion(RegexNode innerNode, int?min = null, int?max = null, RegexQuantifierOption quantifierOption = RegexQuantifierOption.Greedy)
        {
            var positiveLookbehnidAssertion = new RegexPositiveLookbehindAssertionNode(innerNode, min, max, quantifierOption);

            return(AddPositiveLookbehindAssertion(positiveLookbehnidAssertion));
        }