Special Email Validation

Discussion in 'JavaScript' started by wheatcom, Dec 21, 2009.

  1. #1
    All the email validation scripts I have seen are just checking for form. We need one that simply checks for a .edu or .org email.

    Can anybody point me to one?

    Thanks,

    Paul Cardin
     
    wheatcom, Dec 21, 2009 IP
  2. myst_dg

    myst_dg Active Member

    Messages:
    224
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    58
    #2
    That's just a matter of RegEx, try this
    ^\w+([-+.]\w+)*@\w+([-.]\w+)*\.(edu|org)$
    Code (markup):
     
    myst_dg, Dec 23, 2009 IP
  3. geekranger

    geekranger Peon

    Messages:
    20
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    this is just what i need as well... thanks for sharing the regex
     
    geekranger, Jan 3, 2010 IP