|
<< Click to Display Table of Contents >> Navigation: 3. Script Language > String commands > !BLO.-Block-Commands > Content Extraction > String Operations |
MiniRobotLanguage (MRL)
BLO.GetLastContent
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.GetLastContent|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.GetLastContent|$$SRC|'<tag>'|'</tag>'|$$LAST
PRT $$LAST '? B
ENR.
See also:
? BLO.VerifyContent - Verify and get content
? BLO.GetLast - Get last full block
? BLO.RemoveTags - Strip delimiters