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!

Single Quote Email Validation Regexp

Ajay GandhiSep 13 2018 — edited Sep 14 2018

There are thread on this forum about the same and I tried those solution, but somehow they are not working. How do I validate an email with a single quote in them?

For example:

jonathan_o'brien@first.com

o'hara@two.com

steve.o'malley@three.com

d'arcy.talley@four.com

I am using the following regexp and it fails to recognize the single quote validation

REGEXP_LIKE (email, '^[_a-z0-9--’]+(\.[_a-z0-9--’]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,4})$' )

Anyhelp would be appreciated.

Thanks

This post has been answered by Solomon Yakobson on Sep 13 2018
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 12 2018
Added on Sep 13 2018
5 comments
2,124 views