infor.com
concierge
infor u
developer portal
documentation central
customer center
Posts
Categories
Groups
ERPs
CSD
FSM/HRT
LN
M3
Syteline/ CSI
Hubs
Developer
Healthcare
Hospitality
Public Sector
Onboarding
Release Center
CloudSuites
Aerospace & Defense (LN)
Automotive (LN)
Chemicals (M3)
Corporate (FSM/HRT)
Distribution (Sx.e/CSD)
Distribution Enterprise (M3)
Engineering & Construction (LN)
Fashion (M3)
Food & Beverage (M3)
Healthcare (FSM/HRT)
Industrial (Syteline/CSI)
Industrial Enterprise (LN)
Manufacturing (M3)
Public Sector (FSM/HRT)
Solutions
Supply Chain Management (SCM)
Human Capital Management (HCM)
Events
Groups
User Groups
Your Groups
About
Email Community Support
Infor News
Migrated Forums
Home
Clovertech
Clovertech Archive
Read Only Archives
Cloverleaf
Cloverleaf
Regsub with Newline character
Jerry Tilsley
All,
Is there a way to get regsub to insert the actual newline character? I have tried
regsub <searchString> $data {n} newdata
but this just causes it to place the string "n" in the file.
Thanks,
Jerry
Find more posts tagged with
Clovertech
Comments
Jerry Tilsley
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.