I'm using PHP 5.3.0 and I have been experiencing some annoying problems with the preg_match function. It seems there is a hard coded size limit in the function limiting the scope over which the function can make a regexp match to around 50K. Is it just me or does anyone else have the same problem? Is it a limitation that one should be aware of?
"Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
~ Terry Pratchett in Nation
preg_match definitely breaks down when dealing with large matches. I'd be interested to know what you're attempting to parse. There are often better options than a regex ...
Bookmarks