PHP中文网2017-04-17 15:48:20
Visually guess that the place where you are stuck is <p...> because every p needs to be matched and searched
Modify the expression to
<p\sclass="bbs-content[^"']*clearfix">(.*?)<p\sid="alt_action"[^>]*class="clearfix">
They generally don’t change the structure of p randomly, so the above expression can be matched
The speed can be more than 1 times faster
You can see that the $0 $1 below has been matched