Changed regex of test of ID param

Allowing _, -, / and . in addition to word characters.