• Find all substrings that match a given pattern.

    Roughly based on String.prototype.matchAll.

    Parameters

    • value: string

      String to search.

    • regex: string | RegExp

      Regular expression to match.

    Returns RegExpExecArray[]

    Found matches.