#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2003
    Location
    Taipei
    Posts
    1
    Rep Power
    0

    Question email address matching algorithm?


    Hi guys,

    Does anybody know any very efficient algorithm that can check a email address with a set of addresses or domains with wildcards?

    Example:
    pattern 1: *@a.b.c
    pattern 2: joe@*.b
    pattern 3: mary@*.b.c
    pattern 4: *@*.c
    pattern 5: mark@a.b.c
    pattern 6: *@*

    input address: mary@a.b.c

    After computation, the pattern 1, 3, 4, 6 will be selected.

    Sam
  2. #2
  3. No Profile Picture
    .
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2002
    Posts
    296
    Rep Power
    12
    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.

IMN logo majestic logo threadwatch logo seochat tools logo