Skip to Main Content

SQL & PL/SQL

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!

regular expression for email address formats

Keith JamiesonMar 15 2008 — edited Mar 16 2008
I have the following regulare expression which I am using to validate email address format.

This allows addresses of the form
address@oracle.co.uk

^[-a-zA-Z0-9._]+\@[-a-zA-Z0-9]+\.[-a-zA-Z0-9]+\.[-a-zA-Z0-9]+$

And of course this allows addresses of the form
address@oracle.com
^[-a-zA-Z0-9._]+\@[-a-zA-Z0-9]+\.[-a-zA-Z0-9]+$

What I'm looking for is something which will allow both.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 13 2008
Added on Mar 15 2008
1 comment
724 views