[wellylug] Regex question
jfouhy at paradise.net.nz
jfouhy at paradise.net.nz
Fri Jun 3 14:30:35 NZST 2005
Quoting Darryl Hamilton <wellylug at addict.net.nz>:
> (mailer-daemon or postmaster) @ (anything except 'domain.co.nz')
You could always brute-force it ...
(MAILER-DAEMON|postmaster)@([^d].*|d[^o].*|do[^m].*|dom[^a].*|doma[^i].*|domai[^n].*|domain[^.].*|domain\.[^c].*|domain\.c[^o].*|domain\.co[^.].*|domain\.co\.[^n].*|domain\.co\.n[^z].*|domain\.co\.nz.+)
It won't win you any prizes for elegance, though :-)
It seems like you should be able to do something with '(domain.co.nz){0}'...
--
John.
More information about the wellylug
mailing list