On 04/10/2018 10:00 AM, Emanuel wrote:

I have a problem when locking with regular expressions

I need match

/^Subject: (Hello there(.*)|Hey man(.*))/ discard

Break it up into two separate entries.  There is little cost in doing so.

The | operator is supposed to bind to a single token before and after. What I do in such situations is enclose the substrings on each side of the | in parens.

As pointed out by another member here the trailing ".*" is unnecessary.

Reply via email to