Lasso Soft Inc. > Home


AuthorJolle Carlestam
LicensePublic Domain
Posted22 Nov 2011
Updated22 Nov 2011
More by this author...


Adding an optional param to string -> trim so that it works on any character.

Sample Usage

var(mypath = response_filepath)
$mypath -> trim('/')
var(mystring = 'xxxräksmörgåsxx')
$mystring -> trim('x')

Source Code

Click the "Download" button below to retrieve a copy of this tag, including the complete documentation and sample usage shown on this page. Place the downloaded ".inc" file in your LassoStartup folder, restart Lasso, and you can begin using this tag immediately.

define string -> trim(trim::string) => {
	.removeleading(#trim) & removetrailing(#trim)


No comments

Please log in to comment

LassoSoft Inc. > Home



©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft