LassoScript Utility
Basics Browse Detail

[String_Remove]

Tag Link [String_Remove] 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_Remove] takes three parameters: a string, a -StartPosition keyword/value parameter, and a -EndPosition keyword/value parameter. Returns the string with the substring from -StartPosition to -EndPosition removed.

Syntax

[String_Remove: 'String Value',
  -StartPosition=Position,
  -EndPosition=Position]

Parameters

Required Parameters
String Value The string value which is to be modified.
-StartPosition The starting index of the portion of the string to be removed.
-EndPosition The ending index of the portion of the string to be removed.
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 a portion of a string:

Use the [String_Remove] tag. The following example removes five characters from the string, starting at position 5, and returns the resulting string.

[String_Remove: 'String Value', -StartPosition=5, -EndPosition=9]

Strilue

Related Tags

Category Tags