Check for optional parameters in path"/api/animals/:type?" => ["/api/animals", "/api/animals/:type"]Returns None if path doesn't end with optional parameter
Get pattern from a path segmentReturns None for static segments"*" => Wildcard":id" => Param("id")":id{[0-9]+}" => ParamWithRegex("id", "[0-9]+", compiled_regex)