Matches a path against a pattern and replaces using the replacement path if matched (case-insensitive)
The input path to match
The pattern path, may contain *, *+, **, **+ wildcards
The replacement path, may contain <1>, <2>, ... for captures
The replaced path if matched, or null if not matched
remap('foo/bar/baz', 'FOO/**+/BAZ', 'new/<1>') // returns 'new/bar' Copy
remap('foo/bar/baz', 'FOO/**+/BAZ', 'new/<1>') // returns 'new/bar'
Matches a path against a pattern and replaces using the replacement path if matched (case-insensitive)