On 27 Oct 2018, at 9:35, Max Rydahl Andersen wrote:

For people not used to regular expressions, this uses so-called negative lookbehind (if you want to google it). It is also possible to use negative lookahead:

        (?!(dad|wife)@).*@example\.com

That is (perhaps) a bit easier to read in this case. (I have not tested it.)

mailmate uses PCRE-like syntax for its regular expression, right ? then regextester.com is a nice tool for testing.

Not that it matters for you, but I'm pretty sure it works. MailMate uses [oniguruma](https://github.com/kkos/oniguruma/blob/master/doc/RE) which includes negative look-ahead.

--
Benny
https://freron.com/become_a_mailmate_patron/
_______________________________________________
mailmate mailing list
[email protected]
https://lists.freron.com/listinfo/mailmate

Reply via email to