I have this route
There is a working plunker
We can just provide regexp in the url definition:
url: "/{id:(?:[a-fA-F0-9]{8}(?:-[a-fA-F0-9]{4}){3}-[a-fA-F0-9]{12})}",
Read more about our options for url defintion:
http://angular-ui.github.io/ui-router/site/#/api/ui.router.util.type:UrlMatcher
small snippet:
'{' name ':' regexp|type '}'
- curly placeholder with regexp or type name. Should the regexp itself contain curly braces, they must be in matched pairs or escaped with a backslash.