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




Reply With Quote