i'm trying to get the content between two tags with a condition.
So here is a example, i want to get all tr's but only the ones with /c in it.
example string:
<tr><td> /a </td></tr>
<tr><td> /b </td></tr>
<tr><td> /c </td></tr>
<tr><td> /d </td></tr>
using what i got so far i get all tr's
preg_match_all("/<tr.*<\/tr>/", $input_lines, $output_array);
what do i need to do to get this working?
thank you