August 28th, 2003, 04:28 AM
email address matching algorithm?
Does anybody know any very efficient algorithm that can check a email address with a set of addresses or domains with wildcards?
pattern 1: *@a.b.c
pattern 2: joe@*.b
pattern 3: mary@*.b.c
pattern 4: *@*.c
pattern 5: email@example.com
pattern 6: *@*
input address: firstname.lastname@example.org
After computation, the pattern 1, 3, 4, 6 will be selected.
August 30th, 2003, 02:05 PM
i do not have one myself but know that regular expressions'd do this just fine and have been used to do this many times
have a search for "regular expression email validation" and i'd be surprised if you don't get something useful from that.