User Tools

Site Tools


reference:spamrules_statement_globalmatch

Spam Filter Rules: GlobalMatch

Statement GlobalMatch
Version 2.3.13+
Purpose Does a RegExp match on the supplied data and puts the results in a bag

The GlobalMatch statement requires a data parameter, a search value, and the name of a bag to place the matches into, in the format

GlobalMatch <data> <search> <bag name>
  • The <data> parameter is defined in the documentation for IfMatch
  • The matches are returned into a bag with the name bag name

Example

Example

The following example will scan the variable 'text' and put the words into the bag 'words'

GlobalMatch ${text} "/\S+/" words
reference/spamrules_statement_globalmatch.txt · Last modified: 2025/06/06 09:15 by paul