I wrote a regex which matches a string using regex groups pattern:
^(?[a-zA-Z0-9]{0,3})(?[a-zA-Z]{0,2})(?