Alright, I am trying to delete the content in a file between the first occurence of <table and /table> html tags.
I am using:
$content = file_get_contents($file);
$content = preg_replace("#<table(.*)/table>#iU,"",$content);
print $content;
I have been going around in circles trying to get this to work, but it doesn't do anything (no errors, but nothing is replaced). I have used preg_replace in other parts of the program with sufficient results, but for some reason this does not like me!?
Thank you very much for the help--I am getting to the point of insanity on this one!