note 127145 added to function.mb-ereg
| From: | Anonymous at main dot php dot net | Date: | Sun, 29 May 2022 06:22:11 +0000 |
| Subject: | note 127145 added to function.mb-ereg | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-218544@lists.php.net to get a copy of this message | ||
If adding ".*" at the end of the pattern returns "false"
whereas only one "." returns "true",
Suspect the string is too long for the pattern matching.
In this case, using preg_match() returns "true" when putting ".*"
, but adding more "$" or "\z" returns "false" as expected.
----
Server IP: 45.112.84.4
Probable Submitter: 80.90.12.131 (proxied: 220.106.125.36)
----
Manual Page -- https://php.net/manual/en/function.mb-ereg.php
Edit -- https://main.php.net/note/edit/127145
Del: integrated -- https://main.php.net/note/delete/127145/integrated
Del: useless -- https://main.php.net/note/delete/127145/useless
Del: bad code -- https://main.php.net/note/delete/127145/bad+code
Del: spam -- https://main.php.net/note/delete/127145/spam
Del: non-english -- https://main.php.net/note/delete/127145/non-english
Del: in docs -- https://main.php.net/note/delete/127145/in+docs
Del: other reasons-- https://main.php.net/note/delete/127145
Reject -- https://main.php.net/note/reject/127145
Search -- https://main.php.net/manage/user-notes.php