http://www.perlmonks.org?node_id=1031670


in reply to Re^2: Selecting HL7 Transactions
in thread Selecting HL7 Transactions

Actually, no. Everything I've read on non-greedy matching says .*?\| should match everything up to the next \|.