User Tools

Site Tools


4rpl:commands:substring

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
4rpl:commands:substring [2021/01/08 16:01] – external edit 127.0.0.14rpl:commands:substring [2025/02/14 14:57] (current) – external edit 127.0.0.1
Line 1: Line 1:
 ~~NOTOC~~ ~~NOTOC~~
-<=[[4rpl:start| Index]]+<=[[4rpl:start| Index]] \\ 
 +<=[[4rpl:start#strings| Strings]] 
  
 ====== Substring ====== ====== Substring ======
-Substring (<-aString <-startAt <-lenth) ->aPiece+Substring (<-aString <-startAt <-length) ->aPiece
  
 ===== Description ===== ===== Description =====
 Extracts a portion of a string into a new item on the stack. Extracts a portion of a string into a new item on the stack.
  
-The command has 3 arguments. First the string to be examined, second the starting position of the substring within the original string, starting from offset 0 (zero) and thirdly the length of the extrated string.+The command has 3 arguments. First the string to be examined, second the starting position of the substring within the original string, starting from offset 0 (zero) and thirdly the length of the extracted string.
  
 ===== Examples ===== ===== Examples =====
4rpl/commands/substring.1610121708.txt.gz · Last modified: 2025/02/14 14:56 (external edit)