Originally posted by Mark Perschbacher
I have been using regexp with great success in a data conversion project, but have a question. When I execute this string,
regexp -- {(FINAL DIAGNOSIS:.*?)GROSS DESCRIPTION} $obxlist3 {} item
I am getting the requested text, but it is concatenating the OBX fields. Here is the HL7 data
Superficial perivascular dermatitis with eosinophils present with||||||F
OBX|27|TX|SS09-4265$rpt^^99DHT||pustule formation in the epidermis.
Here is the returned text
Superficial perivascular dermatitis with eosinophils present withpustule formation in the epidermis.
Is there an additional expression I can add to the regexp to insert a space, or grab the blank spaces between the segments?