Make regexes the same on the front end and backend

I am pretty sure the path regex(es) are still wrong, the - needs to be escaped, I will look at that next.