I want to match a table and also capture the parts before and after the
table:
preg_match_all( "|(.*)(<table.* table>)(.*)|",$ text, $parts);
But of course it doesn't work, presumably because the first .* is
greedy. I tried adding an ? but that doesn't work either. How do I do
this ?
table:
preg_match_all( "|(.*)(<table.* table>)(.*)|",$ text, $parts);
But of course it doesn't work, presumably because the first .* is
greedy. I tried adding an ? but that doesn't work either. How do I do
this ?
Comment