[MlMt] exclude emails in address pattern ?
Benny Kjær Nielsen
mailinglist at freron.com
Sun Oct 28 06:28:32 EDT 2018
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/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freron.com/pipermail/mailmate/attachments/20181028/f0c5f026/attachment.html>
More information about the mailmate
mailing list