Oops, I forgot something to ask. In HTML this is a valid code: <table border=1><tr><td>a<td>b<tr><td>c<td>d</table> This macro cannot match such things. One can run Tidy in beforehand to clean it up. But my question is whether some of you know a good resource which start tags close a unclosed tag automatically? --Hans