How do I make this code work no matter how much space is inbetween the html tags?
Code:
$template = '<table cellspacing="0" cellpadding="0" border="0" width="100%"><tr><td><h1>(.*)</h1></td><td align="right">&nbsp;</td></tr></table>';
preg_match_all("|".$template."|U", $copy, $system);
Doesn't work if the text appears like
Code:
<table cellspacing="0" cellpadding="0" border="0" width="100%">
<tr>
<td><h1>BLAH HAHA!</h1></td>
<td align="right">&nbsp;</td>
</tr>
</table>
I'd like to keep the PHP on a single line, just so it takes up less space