If this is for business, you will have to consider what exactly you are trying to accomplish.Is it just to make sure that the user inputs something other than rubbish?Just an FYI: I'm the author of Mime Kit which has already been mentioned on this thread.
Write(email " is incorrect"); With the new TLDs, we maybe should replace [a-z A-Z] in the third line with a and then doing a string.format(pattern, pipe Separated Allowed Tlds) where pipe Separated Allowed Tlds would have to be created by iterating through this file: org/TLD/I found nice document on MSDN for it. the 2.0/3.0 version is: Invalid: @Invalid: [email protected]@[email protected]: Abc.Valid: [email protected]: [email protected]: js*@Invalid: [email protected]: [email protected]: [email protected]: [email protected]@Invalid: [email protected] I have to write a program to validate an email address. I wanted to work through everything individually, and I sort of understand what you were doing.not really.To do this I have to use the following criteria: •The email address must start with a letter (no numbers or symbols) •There must be an @ somewhere in the string that is located BEFORE the dot •There must be text after the @ symbol but BEFORE the dot •There must be a dot •There must be text after the dot I have started the program..I cannot figure out how to use correctly. I understand your sentiment, but while you may be helping some people by giving them code, those that learn nothing are actually being hindered.regular expression pattern to separate the domain name from the email address.The third parameter is a Match Evaluator delegate that represents the method that processes and replaces the matched text.Obviously there are expressions that you could use to determine if the format of an e-mail address is valid but you can also use the System.