Lasso Soft Inc. > Home

[String_RemoveLeading]

[String_RemoveLeading] removes the -Pattern parameter from the beginning of the string. Returns the resulting string. The pattern is not case sensitive.

  • Syntax
  • Parameters
[String_RemoveLeading: 'String Value', -Pattern='Pattern']
Required Parameters
String Value The string which should be modified.
-Pattern The pattern which should be removed from the beginning of the string.
Optional Parameters
Encoding Keyword Specifies the encoding for the tag's return value. Tags are encoded using -EncodeHTML by default if their value is output on a format file. No encoding is applied to nested tags unless an explicity encoding keyword is specified. One of -EncodeBreak, -EncodeHTML, -EncodeNone, -EncodeRaw, -EncodeSmart, -EncodeStrictURL, -EncodeURL, -EncodeXML.
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 an [Action_Param].

[String_RemoveLeading: (Action_Param: 'Company'), -Pattern=' ']
Result:
Blue World
Tag Link [String_RemoveLeading] Category String
Type Substitution Data Source Any
Support Preferred Version 2.5
Output Type String Security None
Implementation LCAPI Sets Lasso 8.5, Lasso 8.0, Lasso 7.0, Lasso 6.0, 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