I'm looking for a regex which requires both alphabetic and numeric characters (not just numeric or just alphabetic) and is a specific length.
I know this could be done by using two regex or other program code to check the length, but I want to know if it's possible just by using one regex.
This captures both but isn't limited by length.
([0-9]+[a-z]+|[a-z]+[0-9]+)[0-9a-z]*
This unfortunately doesn't work
(([0-9]+[a-z]+|[a-z]+[0-9]+)[0-9a-z]){10}