"be consistent" | |
PerlMonks |
Re: Selecting HL7 Transactionsby GotToBTru (Prior) |
on May 01, 2013 at 22:11 UTC ( [id://1031662]=note: print w/replies, xml ) | Need Help?? |
I would suggest using regexes only to pull individual segments out of the transaction string.
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.
In Section
Seekers of Perl Wisdom
|
|