From: [EMAIL PROTECTED]
Operating system:
PHP version: 4.0.5
PHP Bug Type: *Regular Expressions
Bug description: unbound .* patterns don't work properly
These 2 are OK:
ereg_replace('..','b','aa') -> b
ereg_replace('.+','b','aa') -> b
But this is wrong:
ereg_replace('.*','b','aa') -> bb
You can "fix" it by binding to the beginning:
ereg_replace('^.*','b','aa') -> b
but not by binding to the end:
ereg_replace('.*$','b','aa') -> bb
--
Edit bug report at: http://bugs.php.net/?id=13439&edit=1
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]