Can I use regular expressions in the GMS Anti-Spam rwords file?
Regular expressions allow for very powerful and flexible string search and replace operations. In traditional search operations the exact text to be searched for must be provided. Regular expressions allow a simple expression to be written that will match many different texts. For example, the expression “ab?cd” will match “abbcd” as well as “abccd”.
The special characters *, ?, [ and ] can be used to indicate special regular expression rules. The rules are:
- any character – This character must appear in the string at this location.
- * – Match any number of characters.
- ? – Match any one character.
- [a-c,r] – Match one character with any of the quoted range (in this case, the one character must be a,b,c or r).
To match an asterisk exactly, use “[*]”.
Regular expressions may be used in the restricted word filter in GMS Anti-Spam.
Keywords:banned words JUCE expressions wildcard restricted rwords Spam checker GMS Anti-spam anti spam antispam