Sign up to request clarification or add additional context in comments.
Comments
1
^\w{1,10}$
That will match on anything 1-10 characters long, ^ means start of the line and $ means end of the line. You can adapt this with your code to produce the results you want.
Given your specific regex I would use ^[U][S][A]\d{2}[C][S]\d{3}$(just adding $ to the end)
[U]is equal toU. So either have[USA]{3}which can be anything fromSSStoUUUor just typeUSA.