I am trying to extract an alphanumeric sequence from text. This sequence could be either five or six characters in length, must start and end with a number, and have at least one letter in between, for example: 25D212, 4WX07, 8FZW5, 2T784, 25XR47
This is what I was able to put together
[0-9][[0-9]|[a-zA-Z]]{3,4}[0-9]
The issue with this solution is that it also matches
888888 (at least one character constraint not being met)