Using Regular Expressions to test passwords

Method 1 - PHP using preg_match

Password must contain at least 6 characters (use lowercase only) and it must contain at least 1 number


Method 2 - Dynamic checking using jQuery/JS

Password must contain at least 6 characters and at least one of those characters must be a number

by Francisco J. Gutierrez