in reply to Selecting HL7 Transactions
Why a regex, in this case, instead of splitting on "|" or (better yet) using Text::CSV to get the fields' values?