Using Textual comparison and Numeric comparison (with regex)
This is a follow up of the example page "Using Textual comparison and Numeric comparison"
Select the checkbox for [x]Evaluate the second text as a regular expression.
(http://en.wikipedia.org/wiki/Regular_expression)
Two texts to compare:
[<?php print $body; ?> ]
[test|sample|example ]
This option is very useful in checking for words (in this example 'test', 'sample' and 'example') in the body of the message. If the words are found anywhere in the body of the message the condition will return TRUE and the Action will be triggered, otherwise return FALSE and nothing will happen. This may be useful in checking for offensive words in the email, and sending them a warning message to not use those words, or if you use Userpoints module you may want to subtract points from the user.
Help improve this page
You can:
- Log in, click Edit, and edit this page
- Log in, click Discuss, update the Page status value, and suggest an improvement
- Log in and create a Documentation issue with your suggestion