oyster wrote: > that is, there is no TABLE tag between a TABLE, for example > <table >something with out table tag</table> > what is the RE pattern? thanks > > the following is not right > <table.*?>[^table]*?</table> Why not use an HTML parser instead? Try lxml.html. http://codespeak.net/lxml/ Stefan