User Tools

Site Tools


reference:spamrules_statement_countmatches

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
reference:spamrules_statement_countmatches [2018/11/14 10:45] – external edit 127.0.0.1reference:spamrules_statement_countmatches [2025/06/06 09:12] (current) paul
Line 4: Line 4:
 ^Purpose  |Counts the number of times a specific regular expression matches in a string | ^Purpose  |Counts the number of times a specific regular expression matches in a string |
  
-**CountMatches** statements require a data parameter a search value and the name of the variable to place the count into, in the format+**CountMatches** statements require a data parametera search valueand the name of the variable to place the count into, in the format
   CountMatches <data> <search> <variable name>   CountMatches <data> <search> <variable name>
  
-  * The <data> paramater is defined in the documentation for [[spamrules_statement_ifmatch#data|IfMatch]]+  * The <data> parameter is defined in the documentation for [[spamrules_statement_ifmatch#data|IfMatch]]
   * The number of times the match occurs is returned into a variable with the name format **${''<variable name>''}**   * The number of times the match occurs is returned into a variable with the name format **${''<variable name>''}**
  
reference/spamrules_statement_countmatches.txt · Last modified: 2025/06/06 09:12 by paul