Help with Backslash

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Help with Backslash

  • Creator
    Topic
  • #52208
    David Harrison
    Participant

      I have an HL7 field that looks like this:

      Code:

      SOME STUFFE.brE

      and I want to truncate it at the first backslash so it looks like this:

      Code:

      SOME STUFF

      Any help welcome.

      Thanks,

      Dave

    Viewing 3 reply threads
    • Author
      Replies
      • #73416
        Charlie Bursell
        Participant

          Fairly simple.  

          set x “SOME STUFF\E\.br\E\”

          regsub — {B.*$} $x {} y

          echo $y

           => SOME STUFF

        • #73417
          David Harrison
          Participant

            Many thanks

          • #73418
            David Barr
            Participant

              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.

            • #73419
              David Harrison
              Participant

                Yes. I’ve just had word the vendor is going to remove them so it saves me a job.

            Viewing 3 reply threads
            • The forum ‘Cloverleaf’ is closed to new topics and replies.