regexp
Condition "OR" is represented with "|".
Code:
/^.*param|param2/ Code:
PARAM1 "AND" STOP "AND" PARAM2 |
A logical and is usually performed by multiple stages. For example:
grep "PARAM1" | grep "STOP" | grep "PARAM2" That is, in order to make it to the successive stages, the requirements of the preceding stages must have been satisfied. |
These parameters are for rejecting email in postfix.
/etc/postfix/body_checkes grep in regexp? |
Sorry, your question was on regular expressions, not postfix configuration. Perhaps someone familiar with postfix filtering can address this...
|
Quote:
see the problem ... Code:
PARAM1.*STOP .*PARAM2 Cheers, Tink |
the problem is that the necessary message is orderly.
example: Code:
PARAM1.*STOP .*PARAM2 Code:
testing message PARAM1 and PARAM2. But if I to modify the message it stops: Code:
testing message PARAM2 and PARAM1. |
In that case you will have to bite the bullet and do something
very ugly (if the repeated greps are not an option): Quote:
so a repeated grep is probably the better choice. Cheers, Tink |
thank you Tinkster.
|
All times are GMT -5. The time now is 09:49 AM. |