I have a table that I am trying to parse
<tr>...</tr>
<tr>...</tr>
<tr>...</tr>
<tr>...</tr>
each row is similarly formatted and I want to split them apart using regular expressions. I have tried everything I can think of but it always seems to take the whole contents as the match
I've tried stuff like this
$pattern = ':(<tr>.*</tr>):';
preg_match_all( $pattern , $working, &$regs2 );
but it always maximally takes everything in one go rather than minimally taking it row by row.
This is probably pretty basic but I just can't seen to get it.