• 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 filters.UpdateFilter<UpdatesWithText, { match: RegExpMatchArray }>