[PHP-DB] REG_BADRPT error

2004-07-19 Thread Aaron Todd
Hello,

I am getting an REG_BADRPT error when I use ereg.

The line of code that errors is:
if (!ereg('^(?=.*[0-9]+.*)(?=.*[a-zA-Z]+.*)[0-9a-zA-Z]{8,}$', $pass)){

I got this regex from regexlib.com and tried to impliment it, but no matter
what I do it always returns the error.  I did a google search and the only
suggestion I found was to make sure that the variable contains data.  So I
echoed the variable and it did have data in it.  Does anyone know why I
might be getting this?

Thanks,

Aaron

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DB] REG_BADRPT

2002-04-18 Thread Camelia Enderby

Thanks David,
I have sorted it. I was reading the reg expresion from a database and
somebody added to the database something that I didn't make provisions for.
Took me a while to see what was wrong.
Thanks again.

- Original Message -
From: "David Robley" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, April 18, 2002 11:33 AM
Subject: Re: [PHP-DB] REG_BADRPT


> In article <005301c1e6b4$b67afde0$af00a8c0@cami>, [EMAIL PROTECTED] says...
> > Does anybody know what this warning error means: REG_BADRPT?
> >
> > Cami
> >
>
> Perhaps if you could post the bit of code that causes it?
>
> --
> David Robley
> Temporary Kiwi!
>
> Quod subigo farinam
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DB] REG_BADRPT

2002-04-18 Thread David Robley

In article <005301c1e6b4$b67afde0$af00a8c0@cami>, [EMAIL PROTECTED] says...
> Does anybody know what this warning error means: REG_BADRPT?
> 
> Cami
> 

Perhaps if you could post the bit of code that causes it?

-- 
David Robley
Temporary Kiwi!

Quod subigo farinam

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP-DB] REG_BADRPT

2002-04-18 Thread Beau Lebens

basically it means that you have an invalid regular expression pattern in a
regex function.

i think it's something to do with the . * ? + symbols - but just take a good
look at your pattern and somewhere in there it is invalid :)

HTH

Beau

// -Original Message-
// From: Camelia Enderby [mailto:[EMAIL PROTECTED]]
// Sent: Thursday, 18 April 2002 4:41 PM
// To: [EMAIL PROTECTED]
// Subject: [PHP-DB] REG_BADRPT
// 
// 
// Does anybody know what this warning error means: REG_BADRPT?
// 
// Cami
// 
// 
// -- 
// PHP Database Mailing List (http://www.php.net/)
// To unsubscribe, visit: http://www.php.net/unsub.php
// 

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DB] REG_BADRPT

2002-04-18 Thread Camelia Enderby

Does anybody know what this warning error means: REG_BADRPT?

Cami


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php