fix Handler to accept a regular expression path