On Tue, 4 Feb 2003, Chris Hastie wrote:
> >> if (preg_match("/\W/",$pass)) {
!= 
> >if (preg_match('/\W/', $pass)) {
They do different things. A string in double quotes will have certain
control characters expanded (namely those starting with a \, like your \W 
whereas a string in single quotes won't.
Nick.