class Tourmaline::RegexFilter
- Tourmaline::RegexFilter
- Tourmaline::Filter
- Reference
- Object
Overview
Filters messages with text (message.text
| message.caption
) using a
regular expression.
Options:
expressions : *Regex
- regular expressions to match on
Context additions:
match : Regex::MatchData
- the match data returned by the successful match
Example:
filter = RegexFilter.new(/^foo(\d+)/)