Lasso Soft Inc. > Home

[String->RemoveLeading]

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

  • Syntax
  • Parameters
[String Variable->(RemoveLeading: 'String Pattern')]
Required Parameters
String Variable The base string which is to be modified.
String Pattern The characters which should be removed from the beginning of the string.
Examples

To remove extra spaces from the beginning of a string:

Use the [String->RemoveLeading] tag. The following tag removes extra spaces from the beginning of a string. Then outputs the string.

[Variable: 'theString' = 'Blue World   ']
[$theString->(RemoveLeading: ' ')]
[Variable: 'theString']
Result:
Blue World
Tag Link [String->RemoveLeading] Category String
Type Member Data Source Any
Support Preferred Version 5.0
Output Type None (Modifies in place) Security None
Implementation Sets Lasso 5.0

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