Match tables with regexs