Password RegEx - 2 Numbers, 2 Uppercase, 2 Lowerca

Run Settings
LanguagePHP
Language Version
Run Command
<?php $subject = "jsG092483--"; $pattern = '/^.*(?=.{12,})(?=(.*[A-Z]){2})(?=(.*[a-z]){2})(?=(.*\d){2})(?=(.*\W){2})(?!.*\s).*$/'; $matches = preg_match($pattern, $subject); // returns 1 (int) if match, 0 if doesnt echo $matches === 1 ? 'OK' : 'NO';
Editor Settings
Theme
Key bindings
Full width
Lines