Re: [PHP-DB] Re: REG_BADRPT error

2004-07-19 Thread Aaron Todd
Thanks for the help. Being new to PHP I was unaware that I could use some perl compatible regexes here. That will help me out a lot. Thanks again, Aaron "Justin Patrin" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > In this case, it seems like you're looking for a lot of differ

Re: [PHP-DB] Re: REG_BADRPT error

2004-07-19 Thread Justin Patrin
In this case, it seems like you're looking for a lot of different and exclusive things at once. I would suggest not using a huge regex as they can be hard to create, harder to read, and impossible to maintain. That said, I do use regexes in some of my code, just not for something this simple. ;-) I

[PHP-DB] Re: REG_BADRPT error

2004-07-19 Thread Aaron Todd
Hello, Ive been trying a few things and finally I did get rid of the error. I changed the code to: if (!ereg('^(!?=.*[0-9]+.*)(!?=.*[a-zA-Z]+.*)[0-9a-zA-Z]{6,}$', $pass)){ Notice the ! before the two ? This got rid of the error, but it still isnt working the way I want it to. That line shoul