Solving............
Reply to discussion (solution)
$pattern = '/^[a-za-z0-9]{6,10}$/';
$pattern = '/^[a-za-z0-9]{6,10}$/';
+1
$pattern = '/^[a-za-z0-9]{6,10}$/';
+1
++1
Solving............
I may not be able to articulate, must have numbers and letters, numbers and letters to have.
$pattern = '/^ (?! [0-9]+$) (?! [a-za-z]+$] [0-9a-za-z]{6,10}$/';
Separate to annotate:
^ matches the beginning of a line
(?! [0-9]+$] predict that the position is not all numbers behind
(?! [a-za-z]+$] predict that the position is not all letters behind
[0-9a-za-z] {6,10} consists of 6-10 digits or this letter
$ Match Line End position
if (Preg_match ('/\d+/', $s) && preg_match ('/[a-z]+/i ', $s)) { echo ' yes ';} else{ echo ' No ';}
$pattern = '/^ (?! [0-9]+$) (?! [a-za-z]+$] [0-9a-za-z]{6,10}$/';
Separate to annotate:
^ matches the beginning of a line
(?! [0-9]+$] predict that the position is not all numbers behind
(?! [a-za-z]+$] predict that the position is not all letters behind
[0-9a-za-z] {6,10} consists of 6-10 digits or this letter
$ Match Line End position
Thank you! This is it, take this regular, more understanding of the next pre-check.