Erebot  latest
A modular IRC bot for PHP 7.0+
Erebot\Event\Match\TextWildcard Class Reference

A filter that matches the content of an event based on some wildcard pattern. More...

+ Inheritance diagram for Erebot\Event\Match\TextWildcard:

Protected Member Functions

 realMatch ($prefix, $text)
 

Detailed Description

A filter that matches the content of an event based on some wildcard pattern.

Note
Valid wildcard characters are "?" (any character), "*" (any string, even an empty one), "&" (any word).
For the purpose of this filter, a "word" is a sequence of characters that starts at the beginning of the string or is preceded with a space (U+0020) and stops at the first space (U+0020) or at the end of the string (whichever comes first).

Definition at line 39 of file TextWildcard.php.


The documentation for this class was generated from the following file: