Greetings, Chris.
In reply to Your message dated Wednesday, July 9, 2008, 23:11:44,
I've done alot of searching and can't seem to find this simple
replacement for table tags.
The end result is that I need to replace <td ABUNCHOFNONSENSEwith
<td>
Here's what I have now:
preg_replace('/^<td.+>/','<td>',$content);
It seems to do nothing, so I assume my pattern isn't matching anything.
There is no simple solution, but what you are trying is not correct one in any
case.
It will result in '<td>' on a string '<td>somestuff</td>'.
I myself would try something like this:
preg_replace('#<(list|of|tags)(?:\s+\w+\=(?:\"[^\"]+\"|\'[^\']+\'|\S+))*\s*>#i', '<$1>', $content);
--
Sincerely Yours, AnrDaemon <an*******@freemail.ru>