Regular Expression in ADF
727467Jun 24 2011 — edited Jun 27 2011I 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