Ideally what I want to do is write an ereg_replace that changes all table tags to width=100% and cellpadding= 7.. I have no idea how to write a regular expression for this..
Any help.. Here is my existing code. Fairly simple and to the book.. Just need help with the ereg_replace
<?
$string = fopen("dmo0908.html", "r");
while (!feof($string)) {
$string2 = fgets($string,255);
$string3 = strip_tags($string2,"<table>,<tr><td></td></tr></i><b></b><p><br><h1></h1><i>");
$string3 = ereg_replace("<TABLE CELLSPACING=0 BORDER=0 CELLPADDING=7 WIDTH=648>", "<TABLE CELLSPACING=0 BORDER=0 CELLPADDING=7 WIDTH=100%>", $string3);
echo $string3,"\n";
}
fclose ($string);
?>