• Filter objects that match a given regular expression

    When a regex matches, the match array is stored in a type-safe extension field .match of the object

    Parameters

    • regex: RegExp

      Regex to be matched

    Returns UpdateFilter<UpdatesWithText, {
        match: RegExpMatchArray;
    }>