import petl as etl from petl import fromtext, capture, skip
table1 = fromtext(\'text_.txt\')
table2 = capture(table1, \'lines\', \'(.)\\|(.)\\|(.*)$\')