correct getting line name with regex