Please assist with the proper RegEx matching. Any 2 letters followed by any combination of 6 whole numbers.
These would be valid: RJ123456 PY654321 DD3212
Depending on if your regex flavor supports it, I might use:
\b[A-Z]{2}\d{6}\b # Ensure there are "word boundaries" on either side, or (?