the php function preg_match()

This thread shows you clearly how to use preg_match() and explains the different switches.


I have this expression in a code snippet i borrowed offline. It forces the new users to have a password that not only requires upper+lower+numbers but they must be in that order! If i enter lower+upper+numbers, it fails!

if ...