On 04/10/18 13:00, Emanuel wrote: > Hello, > > 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. Try this: /^Subject:.*(Hello there|Hey man)/ DISCARD -- Phil Stracchino Babylon Communications ph...@caerllewys.net p...@co.ordinate.org Landline: +1.603.293.8485 Mobile: +1.603.998.6958