Problem with user-specific filename rules

Garry Glendown garry at
Sat Apr 23 09:32:02 UTC 2016

On 22.04.2016 18:20, Mark Sapiro wrote:
> Sorry, my mistake. The negative lookahead needs to be in parens as in
> your last example. Also, there is an issue because the negative
> lookahead doesn't consume any of the string. Thus your pattern
> /^(?!(theuser at$/ will only match the null string because it
> says match the beginning of the string not followed by
> theuser at, but immediately followed by the end of the string.
Now that you write that, it makes sense ;) Just tried, works as 
expected! Thanks a lot!!!


More information about the MailScanner mailing list