[Gambas-user] trimming extra spaces from within a string.

KKing kicking177 at gmail.com
Mon Nov 9 17:46:43 CET 2020


how about
strInput = " This    has    many        spaces  "
strResult = Trim(Replace(strInput,"  "," "))

> That will turn " This    has    many        spaces  "
> into "This has many spaces"



More information about the User mailing list