Clovertech
› Clovertech Forums › Read Only Archives › Cloverleaf › Cloverleaf › Regsub with Newline character
All,
Is there a way to get regsub to insert the actual newline character? I have tried
regsub $data {n} newdata
but this just causes it to place the string “n” in the file.
Thanks,
Jerry
Nevermind, I figured it out. Had to change it to the following:
regsub $data “n” newdata
The braces were the issue causing the characters to be interpreted litterally.