I am trying to build a regular expression with the rule:
2 letters, or no letter followed by up to 6 numbers followed by up to three letters but the letters do not have to be included
(Suffix could be F, L, SD or SDL)
e.g. CA123456SDL OR CA123456 OR 123456
This must accept both upper and lower case.
so far I have came with below:
^([aA-zZ]{2}[0-9]{6,6}[F|L|SDL|SD]{0,1}$)
But its not applying the [F|L|SDL|SD]{0,1} rule and now sure how to add same for lower case , any idea how to achieve this?