String Operations

<< Click to Display Table of Contents >>

Navigation:  3. Script Language > String commands > !BLO.-Block-Commands > Content Extraction >

String Operations

BLO.BlockGetLastContent

Previous Top Next


MiniRobotLanguage (MRL)

BLO.BlockGetLastContent

Returns the content of the last top-level block.

 

 

Intention

Finds the last complete top-level block in a string and outputs only its inner text.

 

 

Visual Example

[X]One[Y] [X]Two[Y] → "Two"

 

 

Syntax

BLO.BlockGetLastContent|P1|P2|P3|P4

 

 

Parameter Explanation

P1 – Source string.

P2 – Start delimiter.

P3 – End delimiter.

P4 – Variable to receive the inner content.

 

 

Example

$$SRC=<tag>A</tag> <tag>B</tag>

BLO.BlockGetLastContent|$$SRC|'<tag>'|'</tag>'|$$LAST

PRT $$LAST '→ B

ENR.