Having trouble with regsub with .br

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Having trouble with regsub with .br

  • Creator
    Topic
  • #48862
    Chad Ward
    Participant

      Hello everyone,

      I’m having trouble with trying to change all the .br (in an obx.5 segment) to .

      Here is the first part of the incoming message:

      OBX|1|FT|POSTOP^PostOperative^SM||.br\.br\.br\.br\.brPERIOPERATIVE

      Here is the tcl:

      regsub -all {\.br\} $xlateInVals “” xlateOutVals

      Here is the result and it still has the trailing in it.

      <0xd><0xa>PERIOPERATIVE RECOR

      What have I done wrong?

      Thanks for any suggestions,

      Chad

    Viewing 1 reply thread
    • Author
      Replies
      • #59949
        Charlie Bursell
        Participant

          try this:

          set xlateOutVals

            ]]

          1. #59950
            Chad Ward
            Participant

              Thanks, Charlie that worked perfectly.

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