Hi I have a variable in a Silex route and we only allow alphanumeric values
->assert(\'hash\',\'\\w+\')
I would like to also allow a dot
Try using a character class ([…]), like this:
[…]
[\w.]+
For example:
->assert('hash','[\w.]+')