Lasso Soft Inc. > Home

[String_RemoveTrailing]

[String_RemoveTrailing] removes all instances of the -Pattern parameter from the end of the string. Returns the resulting string. The pattern is not case sensitive.

  • Syntax
  • Parameters
[String_RemoveTrailing: 'String Value', -Pattern='Pattern']
Required Parameters
String Value The string which should be modified.
-Pattern The pattern to remove from the end of the string.
Examples

To remove extra spaces from the end of a string:

Use the [String_RemoveTrailing] tag. The following tag removes extra spaces from the end of an [Action_Param].

[String_RemoveTrailing: (Action_Param: 'Company'), -Pattern=' ']
Result:
Blue World
Tag Link [String_RemoveTrailing] Category String
Type Substitution Data Source Any
Support Preferred Version 2.5
Output Type String Security None
Implementation Sets Lasso 5.0,LDML3x,LDML25

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