The input path to match
The pattern path, may contain *, *+, **, **+ wildcards
The replacement path, may contain <1>, <2>, ... for captures
Optional
charCompare: CharCompareOptional custom code point comparison function
The replaced normalized path if matched, or null if not matched
Matches a path against a pattern and replaces using the replacement path if matched