preg_match()

the php function preg_match()

{stwpreview url="http://stackoverflow.com/questions/10358300/preg-match-array-items-in-string" link="no" divwrap="no"}

stackoverflow.com/questions/10358300/preg-match-array-items-...

This is a stackoverflow thread on this topic.

Visited105
{stwpreview url="http://www.codingforums.com/php/34709-preg_match-syntax.html" link="no" divwrap="no"}

www.codingforums.com/php/34709-preg_match-syntax.html

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

Visited122
{stwpreview url="http://stackoverflow.com/questions/10201337/what-do-the-symbols-mean-in-preg-match" link="no" divwrap="no"}

stackoverflow.com/questions/10201337/what-do-the-symbols-mea...

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 ...

Visited134