NSURL category with path pattern matching