Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Selecting HL7 Transactions

by GotToBTru (Priest)
on May 01, 2013 at 22:11 UTC ( #1031662=note: print w/ replies, xml ) Need Help??


in reply to Selecting HL7 Transactions

I would suggest using regexes only to pull individual segments out of the transaction string.

$PV1segment = ($transaction =~ /PV1.+?~/;
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.


Comment on Re: Selecting HL7 Transactions
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1031662]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2015-07-03 22:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (57 votes), past polls