I have a jsp that validates a serial number, the first scenario is easy enough, starts with a "P" and is 10 characters long, if it doesn't pass that I need to see if it starts with an "O" then a letter and then 6 numbers.
ie: OE123456
what is the best way to perform this validation
ie: OE123456
what is the best way to perform this validation