Email Validation of illegal characters

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • brosseaa
    New Member
    • Feb 2008
    • 1

    Email Validation of illegal characters

    Does anyone have any code that validation with an email submitted is valid (checks for invalid characters, at least 1 @ sign and perhaps ',' delimited where there are multiple email addresses?
    Also, how do you check for a string of characters within a string? I tried using the match() but am having little luck.
    Any suggestions PLEASE!!!
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    Regular expressions are a good way of validating user input. See how to use them in JavaScript here.
    Also see this link for a possible email matching regular expression.

    Comment

    Working...