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!

regex validation: valid matches not found

j4johnOct 4 2006 — edited Oct 5 2006

Hi

I'm trying to use a regex to validate the format (not the content!) of email addresses. The best regex if found for this so far is

^([0-9a-zA-Z]([-.\w]*[0-9a-zA-Z])*@([0-9a-zA-Z][-\w]*[0-9a-zA-Z]\.)+[a-zA-Z]{2,9})$

which I've tested using http://regexlib.com/RETester.aspx

Strings which produce matches using this tester fail validation when I use the same pattern as an item-level validation on an Apex page.

I know that there are some different regex dialects out there, so maybe that's the problem...

Can anybody help out with an explanation - or even a fix :) ?

Many thanks

john

Comments

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

Post Details

Locked on Nov 2 2006
Added on Oct 4 2006
5 comments
4,120 views