LassoScript Utility
Basics Browse Detail

[String_RemoveTrailing]

Tag Link [String_RemoveTrailing] Category String
Type Substitution Source Available No
Support Preferred Version 2.5
Change Unchanged Data Source Any
Output Type String Security None
Implementation LCAPI Sets Lasso 8.5, Lasso 8.0, Lasso 7.0, Lasso 6.0, Lasso 5.0, Lasso 3.x, Lasso 2.5

Description

[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

[String_RemoveTrailing: 'String Value', -Pattern='Pattern']

Parameters

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=' ']

Blue World

Related Tags

Category Tags