this function would be more helpful to calling code if it just split the prefix from the extension, e.g.

 ":id.json" => ":id", ".json"