Skip to Main Content

Java APIs

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

reg expression

user1254328Aug 29 2016 — edited Sep 27 2016

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 @ symbol and anything empty before and after @

^[_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   firstname.lastname@......

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

Comments

Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Oct 25 2016
Added on Aug 29 2016
1 comment
564 views