On 04/10/18 13:00, Emanuel wrote:
> I have a problem when locking with regular expressions
> I need match
> /^Subject: (Hello there(.*)|Hey man(.*))/ discard
> The rule not work.!
> the parameter. * is correct?
> any ideas?
Well to start with, in that regex, both (.*) sub-expressions are
completely redundant. But you may be making too many assumptions about
whitespace. Your version will work only if there is *precisely one
space and nothing else* between 'Subject:' and the text.
/^Subject:.*(Hello there|Hey man)/ DISCARD