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!

Regular Expression in ADF

727467Jun 24 2011 — edited Jun 27 2011
I have a requirement to validate one UI field with the following pattern. Can some one advise me about creating the correct pattern for the following requirement.

It can have maximum of 8 characters. It can have only numbers, no - or [A-Z]. If there is -, then it should be only after 5th character. The last two characters must be alphabets.

Example: 12, 1234, 12345, 78696, 12345-AB (Any number between 1 to 99999 and optional -[A-Z] )

Can you please suggest regular expression for the above pattern.

Thanks and Regards,

S R Prasad
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 25 2011
Added on Jun 24 2011
5 comments
1,264 views