validate_re is nice, thanks for pointing me to it :) The second line is working perfectly out of the box.
I like to warn about wrong parameters, but I don't like to fix wrong admins ;) So I'll skip the first line.