Skip to Main Content

Java Development Tools

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!

11g Validating an attribute to be an email

668719Nov 4 2008 — edited Nov 5 2008
Hi,

I am trying to create a validator for an attribute "Email" in an EO. However, when creating a table on a page using the VO based on that EO and running the page, I receive error(s) when changing/clearing any Email attribute in that table.

The regular expression I am using is as follows:
[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}

Any help is greatly appreciated.

Thanks.

Edited by: user10489515 on Nov 4, 2008 3:12 PM
This post has been answered by Frank Nimphius-Oracle on Nov 5 2008
Jump to Answer

Comments

452071
I just test the expression and it works ok, you need to keep in mind that this expression is receiving only capital letters, here are a couple of articles on how you can use this expression and convert the input from the UI to uppercase.

http://groundside.com/blog/DuncanMills.php?title=inputtext_to_uppercase_let_me_count_the_&more=1&c=1&tb=1&pb=1
http://groundside.com/blog/DuncanMills.php?p=717&more=1&c=1&tb=1&pb=1#more717

Regards.

Juan C.
Answer
... or you change it to

[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}

Frank
Marked as Answer by 668719 · Sep 27 2020
668719
Thank you, Frank. It worked.
1 - 3
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Dec 3 2008
Added on Nov 4 2008
3 comments
471 views