Table of Contents

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>

Example

Example

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

GlobalMatch ${text} "/\S+/" words