trimstr
The trimstr function removes leading and trailing blanks from a string. It does not remove internal blanks.
str_new = trimstr( str )
str is the string to trim.
str_new is the trimmed string.
The script below trims leading and trailing blanks but leaves internal blanks intact. The | character is used to mark the beginning and end of the strings:
|
-- a string with leading and trailing blanks |
|
-- result: | sdIOPfg*s ss/ ss | |
|
-- result: |sdIOPfg*s ss/ ss| |
Mira Pro x64 Script User's Guide, v.8.77 Copyright Ⓒ 2024
Mirametrics, Inc. All Rights Reserved.