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
Replacing multiple spaces
System
Originally posted by David Harrison
I'm looking for the best way to replace each occurrence of multiple spaces in a string with a single space.
from
" This is my string "
to
"This is my string"
Many thanks and Happy Christmas,
Dave
Find more posts tagged with
Clovertech
Comments
Keith McLeod
How about something like:
set yourstring " This is my string "
regsub -all {s+} $yourstring { } newstring
set finalstring [string trim $newstring]
echo $finalstring
I am sure there is a better way, but this should work for you....
System
Originally posted by David Harrison
That does the business for me.
Thanks,
Dave