First Regexp solution -------------------- outdata for read of line 1 before: outdata for read of line 1 after: outdata for read of line 3 before: outdata for read of line 3 after: ---> outdata for read of line 3 before: outdata for read of line 3 after: