wildstar
    Preparing search index...
    • Returns captures if the pattern matches the source string (case-insensitive), otherwise null.

      Parameters

      • source: string

        The input string to match

      • pattern: string

        The pattern string, may contain * and *+ wildcards

      Returns null | string[]

      Array of captures if matched, or null if not

      • Case-insensitive version of match.
      match('Foo Bar', 'foo *') // returns ['Bar']