Answer the question
In order to leave comments, you need to log in
Line length limit preg_match_all?
preg_match_all searches for strings using a regular expression, but if the searched string is large, it returns an empty array. What is the maximum number of characters in the search string preg_match_all and how to bypass it?
Answer the question
In order to leave comments, you need to log in
maybe you have a line break there? so use modifier m
m modifier: multi-line. Causes ^ and $ to match the begin/end of each line (not only begin/end of string)
php.net/pcre.configuration#ini.pcre.backtrack-limit
pcre.backtrack_limit integer
PCRE's backtracking limit. Defaults to 100000 for PHP < 5.3.7.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question