|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2006-12-17 00:03 UTC] adult at adult-inc dot biz
Description:
------------
Ereg and eregi functions returns irrelevant results
Reproduce code:
---------------
if (ereg("[9876543210]{2,6}", "2006-12-17"))
echo "BUG";
else
echo "OK";
Expected result:
----------------
OK
Actual result:
--------------
BUG
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 30 13:00:01 2025 UTC |
Sorry, had a hard work that day :) That's what i need: ereg("[^0-9$]{2,6}", "2006-12-17")