Exemplo n.º 1
0
        public static RegExprAssert AssertNegated(RegExpr expr)
        {
            var assert = expr.AsAssert();

            return(new RegExprAssert
            {
                Context = assert.Context,
                Negative = !assert.Negative,
                Expr = assert.Expr
            });
        }
Exemplo n.º 2
0
        public static RegExprAssert AssertLookBehind(RegExpr expr)
        {
            var assert = expr.AsAssert();

            return(new RegExprAssert
            {
                Context = AssertLook.Behind,
                Negative = assert.Negative,
                Expr = assert.Expr
            });
        }