Matches a path against a pattern with wildcards and captures
The input path to match
The pattern path, may contain *, *+, **, **+ wildcards
Optional
Optional custom code point comparison function
Array of captures if matched, or null if not
match('foo/bar/baz/wow.txt', "foo/**+/wow.*") // returns ['bar/baz', 'txt'] Copy
match('foo/bar/baz/wow.txt', "foo/**+/wow.*") // returns ['bar/baz', 'txt']
Matches a path against a pattern with wildcards and captures