...
Examples
Example 1
Code Block |
---|
|
wret = lastIndexOf("f1/f2/f3", "/f");
print("Return " + wret); |
Print Return 5
Example 2
Code Block |
---|
|
wret = lastIndexOf("f1/f2/f3", "/fi");
print("Return " + wret); |
Print Return -1
Example 3
Code Block |
---|
|
wret = lastIndexOf("f1/f2", "");
print("Return " + wret); |
...
Note |
---|
The last occurrence of the empty string "" is considered to occur at the index value str1.length(). If you need to find str2 multiple times use substring() routine function. |
See also
Filter by label (Content by label) |
---|
showLabels | false |
---|
max | 25 |
---|
showSpace | false |
---|
cql | label = "string_routine" and space = currentSpace ( ) |
---|
labels | array_routines |
---|
|
We've encountered an issue exporting this macro. Please try exporting this page again later.