I am looking to create a RegEx template
- 8 characters
[a-zA_Z] - must contain only one digit anywhere on the line
I created this template:
^(?=.*[0-9].*[0-9])[0-9a-zA-Z]{8}$
This pattern works fine, but I want only one digit allowed. Example:
aaaaaaa6 match aaa7aaaa match aaa88aaa don't match aaa884aa don't match aaawwaaa don't match
Eslam totti
source share