User Tools

Site Tools


4rpl:commands:split

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
4rpl:commands:split [2021/11/27 07:55] Karsten754rpl:commands:split [2024/04/13 14:27] (current) – delimiter is char based Vertu
Line 1: Line 1:
 ~~NOTOC~~ ~~NOTOC~~
 <=[[4rpl:start| Index]] \\ <=[[4rpl:start| Index]] \\
-<=[[4rpl:start#strings|strings]]+<=[[4rpl:start#strings| Strings]]
  
  
Line 8: Line 8:
  
 ===== Description ===== ===== Description =====
-Takes two strings from the stack and splits the first wherever the second occurs. Returns a list of strings.+Takes two strings from the stack and splits the first wherever the second occurs. Returns a list of strings.\\ 
 +Note that the delimiter will split the string for every char within the delimiter. So if the delimiter is "ab" it will split the string for every individual `a` and `b` encountered, not every "ab".
  
 ===== Examples ===== ===== Examples =====
4rpl/commands/split.txt · Last modified: 2024/04/13 14:27 by Vertu