|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2000-12-05 18:22 UTC] zak@php.net
[2001-01-08 18:47 UTC] avsm@php.net
[2001-01-28 18:35 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 19:00:01 2025 UTC |
<?php $str[] = "Makefile"; $str[] = "makefile"; $str[] = ".."; $str[] = "X-picturev"; $regexp = "^[a-z]"; while ( list( $key, $e) = each($str) ){ if( ereg( $e, $regexp)) echo "$e is lower<br>"; else echo "$e is UPPER<br>"; } ?> confugured --regex=pcre http://tbiz.webrelay.net/test/ereg.php will illustrate the bug and show phpinfo(); Also php4.0pl1 with OpenBSD with -regex=php will behave similarly.