dannyvankooten/AltoRouter — pull request #48 by scrnjakovic (2014-01-20 16:00:40+00:00)
Title: Common title match type

Since [a:title], as expected, matches only alphanumeric characters, but no dashes which are most commonly used as space alternative in titles, and [*:title] matches anything (Serbian latin characters šđžčć for an example), there is no out of the box type for properly matching titles. This type allows matching titles as it must start with an alphanumeric character, which can be followed by just one dash in which case it must be followed by at least one more alphanumeric character.

Allowed: mytitle, my-title
Not allowed: -my-title, my--title, my-title-

Usage: [t], [t:title]