Clovertech
› Clovertech Forums › Read Only Archives › Cloverleaf › Cloverleaf › Help with Backslash
I have an HL7 field that looks like this:
SOME STUFFE.brE
and I want to truncate it at the first backslash so it looks like this:
SOME STUFF
Any help welcome.
Thanks,
Dave
Fairly simple.
set x “SOME STUFF\E\.br\E\”
regsub — {B.*$} $x {} y
echo $y
=> SOME STUFF
Many thanks
That’s some weird data you have there. It looks like HL7 formatted text that was then processed to pass HL7 escape characters literally. It doesn’t look like valid HL7 to me.
Yes. I’ve just had word the vendor is going to remove them so it saves me a job.