1
Answer

Regular expression for smtp server name

nikhil

nikhil

11y
2.5k
1
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)