Home >Backend Development >PHP Tutorial >preg_match regular matching string_PHP tutorial
There will be some problems in the strings matched by preg_match. Let me introduce to you how to solve the problem of wrong views when long strings.
Example
preg_match_all regular match string all connection addresses
The code is as follows
|
Copy code
|
||||||||||||||
$str ='4
'; $ymd=date("y")."/".date("m-d");
Later I found that the value of "pcre.backtrack_limit" is only set to 100000 by default.
|
The code is as follows | Copy code |