If I have a route like this:
routes.Add(new Route(\"{controller}/{page}\",
new RouteValueDictionary
{
{ \"page\", UrlParameter.Optional }
I'm using ^$| within a regex, such as: (^$|[Pp]age\d+). I found this question while searching for an answer to this and figured I'd add what I found here.
routes.MapRoute(
name: "News Archive",
url: "News/{page}",
defaults: new { controller = "news", action = "List", page= UrlParameter.Optional },
constraints: new { page= @"^$|[0-9][0-9]" });