Skip to Main Content

APEX

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 validates in DB but not with a apex regexp validation?

592955Nov 10 2009 — edited Nov 10 2009
Hi all,

sorry if I overlooked a similar post:

I have a page with a form and item containing this email address
dar.blob@flop.ee
On that item I've made a validation of type regular expression.
I've got my item in
Validation expression 1
P420_EMAIL
and in
Validation expression 2
'^[a-zA-Z0-9\_\.\-]+@[a-zA-Z0-9\_\.\-]+\.[a-zA-Z]{2,4}$'
If I do
select 'dar.blob@flop.ee' 
from    dual 
where   regexp_like('dar.blob@flop.ee' , '^[a-zA-Z0-9\_\.\-]+@[a-zA-Z0-9\_\.\-]+\.[a-zA-Z]{2,4}$')
on the DB this returns my email address as expected.

If I submit my form with that same email address I get my error message from my validation.


What's the difference I'm missing between the Apex way and the DB way of validating with this regular expression?


Thanks a lot!

Kind regards,
Diana
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 8 2009
Added on Nov 10 2009
4 comments
637 views