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