Worth factoring ([^/]+) out as an ANY constant to make it clearer?