Reputation: 5038
An example string:
AB-XYZ-123
Where:
AB
: Any two capital alphabets only, no symbol, no numbers, no Small letter alphabets.
-
: A -
symbol only, nothing else.
XYZ
: Any three capital characters capital letter alphabets combination.
-
: A -
symbol only, nothing else.
123
: Any three numbers ([0-9]) combination.
and yeah I am very weak in creating regex.
Upvotes: 0
Views: 57