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> 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? Link to comment https://forums.phpfreaks.com/topic/232643-problem-with-preg_match/#findComment-1196636 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.