Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Selecting HL7 Transactions

by LanX (Canon)
on May 01, 2013 at 20:36 UTC ( #1031644=note: print w/ replies, xml ) Need Help??


in reply to Selecting HL7 Transactions

better try [^|] instead of .

PV1\|1\|O\|([^|]*?\|){3}\|

do you really need to capture field 2-5 ?

Honestly this code hurts my eyes and horrifies my senses for maintenance !

Better consider something like putting your first regex in a while loop and analyzing the captured string within that loop.

Friedl's book is a good read!

Cheers Rolf

( addicted to the Perl Programming Language)


Comment on Re: Selecting HL7 Transactions
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (8)
As of 2015-07-29 00:35 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 (260 votes), past polls