Filter objects that match a given regular expression
Message
Message.text
InlineQuery
InlineQuery.query
dataStr
When a regex matches, the match array is stored in a type-safe extension field .match of the object
.match
Regex to be matched
Filter objects that match a given regular expression
Message,Message.textis usedInlineQuery,InlineQuery.queryis useddataStris usedWhen a regex matches, the match array is stored in a type-safe extension field
.matchof the object