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 - changing T in the URL to &
System
Originally posted by Barbi
Here is the code I am using:
regsub -all {\T\$} $xlateInVals {&} xlateOutVals
I need to change the T to and &.
thanks
Barbi
Find more posts tagged with
Clovertech
Comments
System
Originally posted by Barbi
Here is the code that will work.
regsub -all {\T\} $xlateInVals {&} xlateOutVals
Charlie Bursell
So will the string command:
set xlateOutVals [string map {\T\ &} $xlateInVals]
I usually don't like to use string commands on a list but since you are setting a list, its OK
FWIW, the string command isa bit more ergonomic when doing minor changes. Its more optimized and designed to do a specific task.
And, the nice thing is you don't have to worry about escaping regular expression special characters
david_barr
I don't think a simple regsub will work for all cases.