php-developer-list | 2000101
Date: 10/15/00
- Next message: Bug Database: "[PHP-DEV] PHP 4.0 Bug #7222 Updated: ereg_replace, ereg"
- Previous message: Bug Database: "[PHP-DEV] PHP 4.0 Bug #6072 Updated: ldap library missing from libphp4.so - shows up when apache is started."
- In reply to: zibin <email protected>: "[PHP-DEV] PHP 4.0 Bug #7222: ereg_replace, ereg"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 15 Oct 2000 zibin <email protected> wrote:
> From: zibin <email protected>
> Operating system: unix
> PHP version: 4.0.2
> PHP Bug Type: *Regular Expressions
> Bug description: ereg_replace, ereg
>
> everytime I have a regular expression which have ".*" or "[0-9]*" I get the following error:
>
> Warning: REG_BADRPT in /home/websites/www.gigcenter.com/DB.htmlToPHP3.php3 on line 236
>
> For example:
> if ( eregi("onlyuser\[(.*?)\]",$inside, $regs) ||
>
> if ( eregi("adduser\[(.*?)\]",$inside, $regs) ) {
>
> But this doesn't cause error:
> if ( eregi("authenticate=(.)",$inside, $regs) )
> $authenticate = $regs[1];
>
> if ( eregi("MUST Authenticate",$inside) )
>
>
> thanks for your time.
".*?" is a bad construct. Do you mean "(.\*)?" (optional any char but nl
followed by literal asterisk) or just ".*" (zero or more of any char but
nl)?
-- Ignacio Vazquez-Abrams <ignacio <email protected>-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Bug Database: "[PHP-DEV] PHP 4.0 Bug #7222 Updated: ereg_replace, ereg"
- Previous message: Bug Database: "[PHP-DEV] PHP 4.0 Bug #6072 Updated: ldap library missing from libphp4.so - shows up when apache is started."
- In reply to: zibin <email protected>: "[PHP-DEV] PHP 4.0 Bug #7222: ereg_replace, ereg"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

