$str.lefttolast

Returns the left part of a string until the last ocurrence of a given substring
Usage
$str.lefttolast(<string>,<substring>[,<case>])
Description
This function returns the left part of the string given as the first parameter from the start until the last ocurrence of the string given as the second parameter is found. It doesn't include the substring of the second parameter in the returned value. If the second parameter is not found, an empty string is returned. If the third parameter is set to true, then the search is case sensitive; it defaults to false.
Syntax Specification
<string> $str.lefttolast(<string:string>,<substring:string>[,<case:bool>])
Examples

    %test = "Hello! My nickname is Pragma, my name is Szymon"
    echo $str.lefttolast(%test, My);        //  "Hello! My nickname is Pragma, "
    echo $str.lefttolast(%test, My, true);    //  "Hello! "


Index, Functions
KVIrc 4.2.0.6190 Documentation
Generated by builduser at Thu May 18 22:40:02 2017