PHP 8.5.0 Alpha 4 available for testing

Voting

: max(two, one)?
(Example: nine)

The Note You're Voting On

Anonymous
3 years ago
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.

<< Back to user notes page

To Top