This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
reference:spamrules_statement_ifmatch [2011/08/22 14:38] – simon | reference:spamrules_statement_ifmatch [2011/08/24 15:21] – simon | ||
---|---|---|---|
Line 6: | Line 6: | ||
**IfMatch** statements require a data parameter and a search value, in the format | **IfMatch** statements require a data parameter and a search value, in the format | ||
IfMatch < | IfMatch < | ||
+ | |||
+ | The **IfMatch** statement must be terminated with an **EndIf** and may contain an **Else** statement, just like the [[spamrules_statement_if|If]] statement. | ||
=====Data===== | =====Data===== | ||
Line 53: | Line 55: | ||
^D |The dollar character matches only at the end of the search string. Without this, it can also match immediately before the final character if it is a newline character. | | ^D |The dollar character matches only at the end of the search string. Without this, it can also match immediately before the final character if it is a newline character. | | ||
^U |The search will be “ungreedy” instead of the default mode of greedy. | | ^U |The search will be “ungreedy” instead of the default mode of greedy. | | ||
- | |||
- | The **IfMatch** statement must be terminated with an **EndIf** and may contain an **Else** statement, just like the [[spamrules_statement_if|If]] statement. | ||