Help get this topic noticed by sharing it on Twitter, Facebook, or email.

Regex route constraint with negative lookahead in MVC 3


my SO question may be of interest to you, possibly there's an issue with the tester.

Kind regards,
Stijn Herreman
1 person has
this question
  • It looks like it's just an issue of two different behaviors. Regex Hero counts all matches even if the match length is 0, whereas the Regex route constraint must do something different.

    There are examples of this to be found with ASP.NET validation as well. For example, I recently learned that the RegularExpressionAttribute in MVC DataAnnotations will check to make sure that the string length is equal to the match length ( ). It could be that the routing constraints use the same behavior.
  • (some HTML allowed)
    How does this make you feel?
    Add Image

    e.g. indifferent, undecided, unconcerned happy, confident, thankful, excited kidding, amused, unsure, silly sad, anxious, confused, frustrated