In Oracle 11g, I need to check perform a check to see if the following format is true (i.e. via a regular expression):
PaaaaE0%
PaaaaD2%
where this value is of the following format:
P ( followed by any 4 alphanumeric digits) E or D (followed by atleast 1 numeric digit)
As part of the 4 alphanumeric digits, if alpha then they need to be uppercase.
For now, I have tried something like:
REGEXP_LIKE('PWOOOE12s3','[P][:alnum:]{4}[ED][:digit:]{1}')