Lasso Soft Inc. > Home

[ string->removetrailing ]

Method

[String->RemoveTrailing] removes all instances of the parameter from the end of the string. Modifies the string and returns no value. Requires a single string parameter. The pattern is not case sensitive.

  • Syntax
'String Object'->removetrailing('String Pattern')
Examples
  • Beginner

To remove extra characters from the end of a string:

Use the [String->RemoveTrailing] method. The following example removes extra "es" from a string object, then the result is output.

Code

local('s') = 'The quick white rhinoceroseseseses'
#s->removetrailing('es')
#s

Result

The quick white rhinoceros

Recent Comments

No Comments found

Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.

LassoSoft Inc. > Home

 

 

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