21 references to RegexRouteConstraint
Microsoft.AspNetCore.Routing (3)
Constraints\RegexInlineRouteConstraint.cs (1)
26: base(regexPattern)
Patterns\RoutePatternFactory.cs (1)
955return ParameterPolicyCore(new RegexRouteConstraint("^(" + content + ")$"));
RouteConstraintBuilder.cs (1)
115constraint = new RegexRouteConstraint(constraintsRegEx);
Microsoft.AspNetCore.Routing.Tests (18)
Constraints\RegexRouteConstraintTests.cs (2)
30var constraint = new RegexRouteConstraint(constraintValue); 115var constraint = new RegexRouteConstraint("^([a-z]+)$");
DefaultLinkGeneratorProcessTemplateTest.cs (3)
675policies: new { p2 = new RegexRouteConstraint("\\d{4}"), }); 701policies: new { p2 = new RegexRouteConstraint("\\d{4}") }); 725policies: new { p2 = new RegexRouteConstraint("\\d{4}") });
DefaultParameterPolicyFactoryTest.cs (1)
570: base(regexPattern)
Patterns\DefaultRoutePatternTransformerTest.cs (2)
216var policies = new { controller = "Home", action = new RegexRouteConstraint("Index"), }; 238var policies = new { controller = "Home", action = new RegexRouteConstraint("Index"), };
Patterns\RoutePatternFactoryTest.cs (10)
142var constraints = new { a = new RegexRouteConstraint("foo"), b = new RegexRouteConstraint("bar") }; 187var constraints = new { d = new RegexRouteConstraint("foo"), e = new RegexRouteConstraint("bar") }; 223var constraints = new { d = new object[] { new RegexRouteConstraint("foo"), new RegexRouteConstraint("bar"), "baz" } }; 254var constraints = new { b = "fizz", c = new object[] { new RegexRouteConstraint("foo"), new RegexRouteConstraint("bar"), "baz" } }; 800var policies = new { X = new RegexRouteConstraint("x"), }; 840var right = RoutePatternFactory.Parse("/b", defaults: null, parameterPolicies: new { X = new RegexRouteConstraint("foo") });