updated output to add a linefeed at the end of each data line out put when using regex mode