Hello all!
I'm need a relatively simple Regular Expression for an APEX validation and I am getting nowhere!
I need a regular expression that validates that the contents of a variable is in the following form:
ABC1234567
where the first three characters are capital letters and the next 7 are numeric. THe field must be 10 characters long.
Can anyone please help. I am so frustrated; this can't be so hard!
My validation was:
^([A-Z]{3}[0-9]{7})$ but the validation does not work.
When I leave it at:
^([A-Z]{3}[0-9]{7}) without the $ sign at the end, and it ignores the required 7 digits.
Any ideas?
Thank you!