nikhil

nikhil

  • NA
  • 3
  • 0

Regular expression for smtp server name

Jan 1 2014 4:58 AM
Hi Want a regular expression for SMTP server host name.
It should except patter like iuoo.rolta.com (only two '.') 
I have an expression but it's excepting more '.' like  mail.abc.com.com
^((([\w]+\.[\w]+)+)|([\w]+)).(([\w]+\.)+)([A-Za-z]{1,3})$
 
Can anyone help me on this? 
 

Answers (1)