Removing Spaces

Clovertech Forums Read Only Archives Cloverleaf Tcl Library Removing Spaces

  • Creator
    Topic
  • #53607
    Corey Lewis
    Participant

      Good Afternoon,

      I was wondering if anybody knew how to remove spaces from a field.  I have this: |ESR^SED RATE                       ESR and I need to get it down to this: |ESR^SED RATE ESR.  

      I wasn’t sure if a I could do a trim and use ”  ” for my character I want to trim on(that’s 2 spaces between the quotes).

    Viewing 1 reply thread
    • Author
      Replies
      • #78274

        Try something like this.

        set new “”

        regsub -all — {s+} [lindex $xlateInVals 0] ” ” new

        set xlateOutVals

        -- Max Drown (Infor)

      • #78275
        Corey Lewis
        Participant

          Max,

          That worked superbly.  Thanks for you help.

          Corey

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