1. Home
  2. Knowledge Base
  3. GMS
  4. Can I use regular expressions in the GMS Anti-Spam rwords file?

Can I use regular expressions in the GMS Anti-Spam rwords file?

Question

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”.

Answer

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.

See Also:

Keywords:banned words JUCE expressions wildcard restricted rwords Spam checker GMS Anti-spam anti spam antispam

Was this article helpful?

Related Articles

Need Support?

Can't find the answer you're looking for?
Contact Support