ASP.NET MVC regex route constraint
问题 I'm having trouble with a specific constraint I'm trying to set up on a route. My URL must look like this one: http://hostname/id-my-title-can-be-that-long where id is composed with digit only and the title is lowercase character with dashes separator. The id and the title are also separated with a dash. For example: http://hostname/123-my-title. Here's my route definition: routes.MapRoute( "Test", "{id}-{title}", new { controller = "Article", action = "Index" }, new { id = @"(\d)+", title =