INSTR
Finds a text inside another text.
The result is the position of the first match, or -1 if there is none.
Parameters and results
textSTRING: the text to search insearchSTRING: the text to findstartINTEGER: where the search begins (optional, default 0)- result
resultINTEGER: the position, or -1
Example
c0de
CALL c0de/strings/INSTR
PARAMETER text message ;
PARAMETER search "diamond" ;
RESULT result position