Hi Jochen, Can you provide some example text that contains matches? (and the correct match)
Might help us find a solution, Cheers, Stig Jochen Daum wrote, on 16/07/2009 10:01 AM: > The regex string is: > > $regex = '#(<div[^>]+id="cpanel">.*?)'. > '(<div style="float:left;">.*?<div > class="icon">.*?</div>.*?</div>)+'. //this needs to be greedy > '(.*?</div>.*?</td>)#ism' //instead the first .*? becomes greedy > > > > The 2nd line html elements repeat and I don't know how often. I'd like > to capture all of the repetition, currently it only captures the first > element. > > Any pointer of how to make the ()+ greedy? > > --~--~---------~--~----~------------~-------~--~----~ NZ PHP Users Group: http://groups.google.com/group/nzphpug To post, send email to [email protected] To unsubscribe, send email to [email protected] -~----------~----~----~----~------~----~------~--~---
