I'm trying to write a regex that matches tables (html) with or without content and with possible nested tables. I'm working in vbscript If I use "<table\b[^>]*>(.*?)</table>" the following will be matched <table>..<table>..</table> this will exclude the outer </table> (and any content between the inner and outer </table>) I was thinking of matching a table that does not contain a table (string "<table") and then put it in a loop (a simple for ... next in vbscript) but I'm newbeeish in the world of regex to make that work =(
Try searching for "ungreedy" expressions in VB. I know in PHP, you will have to use a modifier to make it "greedy". Peace,