Forum Stats

  • 3,854,238 Users
  • 2,264,344 Discussions
  • 7,905,618 Comments

Discussions

reg expression

user1254328
user1254328 Member Posts: 856 Bronze Badge

Hello - I hope this is correct forum to ask question.  I have a regular expression for email field validation. It is working fine like  :

it checks

^[_A-Za-z0-9-]+(\\.[_A-Za-z0-9-]+)*@[A-Za-z0-9]+(\\.[A-Za-z0-9]+)*(\\.[A-Za-z]{2,})$

but in addition we also want to be able to check there is atleast one dot as our addresses are always   [email protected]

I tried to update above but still not able to get the expression for validating  the dot ( one between firstname and lastname )

Answers

This discussion has been closed.