edited regex to compensate for lines that do not start with tabs