======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 * The parameter is defined in the documentation for [[spamrules_statement_ifmatch#data|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