assuming ~ is the segment terminator. Then, use split to break the segments into arrays. It is much easier than dealing with regexes, and takes advantage of the delimited structure of the data.$PV1segment = ($transaction =~ /PV1.+?~/;
In reply to Re: Selecting HL7 Transactions
by GotToBTru
in thread Selecting HL7 Transactions
by BillDowns
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |