Match a path against a pattern with wildcards and capture results (case-insensitive)
The input path to match
The pattern path, may contain *, *+, **, **+ wildcards
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']
Match a path against a pattern with wildcards and capture results (case-insensitive)