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
I don't know the internals of assert(), but use a char class:
assert()
->assert('hash','[\w.]+')