added extract_reg_lines.pl