Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

regular expression for strong password in php

if(preg_match((?=^.{8,}$)((?=.*d)|(?=.*W+))(?![.
])(?=.*[A-Z])(?=.*[a-z]).*$, $_POST['password']):

echo 'matched';

else:

echo 'not matched';

endif;
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #regular #expression #strong #password #php
ADD COMMENT
Topic
Name
3+9 =