I’d like to add a constraint to a route parameter that I have. The route pattern is:
{region}/{controller}/{action}
where {region} should only be UK or US.
How can I do this? Is there a regex I can apply here, or some other means of defining this?
This question has been asked before. See:
Constraint Question
In essence, use Regular Expressions: