Regsub with Newline character

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Regsub with Newline character

  • Creator
    Topic
  • #53144
    Jerry Tilsley
    Participant

      All,

      Is there a way to get regsub to insert the actual newline character?  I have tried

      Code:

      regsub $data {n} newdata

      but this just causes it to place the string “n” in the file.

      Thanks,

      Jerry

    Viewing 0 reply threads
    • Author
      Replies
      • #76705
        Jerry Tilsley
        Participant

          Nevermind, I figured it out.  Had to change it to the following:

          Code:

          regsub $data “n” newdata

          The braces were the issue causing the characters to be interpreted litterally.

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