I want regex which can fulfill below requirement:

1. Between 6 and 10 total characters
2. At least 1 but not more than 2 of the characters need to be alpha
3. The alpha characters can be anywhere in the string

We have tried this but not working as expected : `(^[A-Z]{1,2}[0-9]{5,8}$)|(^[A-Z]{1}[0-9]{4,8}[A-Z]{1}$)|(^[0-9]{4,8}[A-Z]{1,2}$)|([^A-Z]{3}[0-9]{6,9})`

Can anyone please help me to figure it out?

Thanks