procmail
[Top] [All Lists]

Re: Regular expression problem

2006-12-28 03:45:25
Google Kreme schreef:
Ruud H.G. van Tol:
Google Kreme:

* ^TO_$PHONEUSER(_at_)doamin(_dot_)tld

That'd be how I'd go about doing it.

Better make that

  * $ ^TO_$PHONEUSER(_at_)doamin[(_dot_)]tld

Yes, but really, the former is going to be just fine 99.9999% of the
time, especailly in this case.

2125551212(_at_)tmomail(_dot_)net might falsely match on

2125551212(_at_)tmomailsnet[work(_dot_)com]

but seriously, how often is that going to happen?

You missed the other correction: the $ for one extra interpolation.

You still better be more careful with the tiny dot, and anchor endings
too, because /@doamin.tld/ also matches stuff like
"@doamin#tld.example.com".

-- 
Groet, Ruud


____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>