PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I am trying to use ereg_repalce to get rid of the LAST column from an html table, but cannot figure out the proper string pattern syntax.
The beginning of the pattern is "<td width". Since this is the last column I want to delete, I would use "</tr>" as the ending part.
I tried using "<td w([^>]|\n)*tr>" but that didn't work. I think I am getting problems with the carriage returns in the HTML and the extra < and > too.