etrader Posted April 4, 2011 Share Posted April 4, 2011 I use this code to catch a list between <ul> tag: preg_match('/<ul style=\"list\" >(.*)?<\/ul>/siU', $html, $match); but my problem is that the preg_match continues until the last </ul>. How I can limit the preg_match just until the next </ul> Quote Link to comment https://forums.phpfreaks.com/topic/232643-problem-with-preg_match/ Share on other sites More sharing options...
dcro2 Posted April 4, 2011 Share Posted April 4, 2011 Could you post a sample of the html? Quote Link to comment https://forums.phpfreaks.com/topic/232643-problem-with-preg_match/#findComment-1196636 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.