wildstar
    Preparing search index...
    • Match a path against a pattern with wildcards and capture results (case-insensitive)

      Parameters

      • source: string

        The input path to match

      • pattern: string

        The pattern path, may contain *, *+, **, **+ wildcards

      Returns null | string[]

      Array of captures if matched, or null if not

      match('foo/bar/baz/wow.txt', 'FOO/**/WoW.*') // returns ['bar/baz', 'txt']