Forum Moderators: coopster
i've got a long bit of html, in the following format
<strong>Blah Blah</strong> Blah Blah <br> <strong>Blah Blah</strong> Blah Blah <br> <strong>Blah Blah</strong> Blah Blah <br> <strong>Blah Blah</strong> Blah Blah <br> <strong>Blah Blah</strong> Blah Blah <br> <strong>Blah Blah</strong> Blah Blah <br> There might be as many as 100 different lines, all in the same format. What I want to do is grab everything between
<strong>Blah blah</strong> (including the tags), and then only print out 50 of them. i figure it's something to do with preg_match. if i can match the text i want (which is easy), i might be able to then put them into an array, or something, and loop through 50 of them.
that's what i thought would be a good idea, anyway, but i'm stumped trying to make it work