Turn a path string such as `/user/:name` into a regular expression
翻译 - 将诸如/ user /:name之类的路径字符串转换为正则表达式