wildstar
    Preparing search index...
    • Matches a string against a pattern (case-insensitive) and replaces using the replacement string if matched.

      Parameters

      • source: string

        The input string to match

      • pattern: string

        The pattern string, may contain * and *+ wildcards

      • replacement: string

        The replacement string, may contain <1>, <2>, ... for captures

      Returns null | string

      The replaced string if matched, or null if not matched

      • Case-insensitive version of remap.
      remap('Foo Bar', 'foo *', '<1> baz') // returns 'Bar baz'