I am trying to create a textbox in infoth form with following creteria: 1.) Length should be 7-15 characters 2.) It should contain at least one digit 3.) It should contain at least one character 4.) It should contain only digits and alphabets
[a-zA-Z1-9 ]{7,15} give seven to 15 characters alphanumeric but does not confirm that at one digit and alphabet.
I tried to add some like ^\d*[a-zA-Z][a-zA-Z0-9]*$ but no luck.
Than i trid to add "[a-zA-Z1-9 ]{7,15}" and "/d" in or condition but still not working.
Could someone please help me with this.