I am trying to generate a route using ASP.NET routing, but I only want it to apply if certain values are numeric.
// Routing for Archive Pages
routes.Add("Category1Archive", new Route("{CategoryOne}/{Year}/{Month}", new CategoryAndPostHandler()));
routes.Add("Category2Archive", new Route("{CategoryOne}/{CategoryTwo}/{Year}/{Month}", new CategoryAndPostHandler()));
Is there anyway to know if {Year} and {Month} are numeric values. Otherwise this routing conflicts with other routes.