apoc.text.indexesOf
Syntax |
|
||
Description |
Returns all occurrences of the lookup |
||
Arguments |
Name |
Type |
Description |
|
|
The string to search for the lookup string in. |
|
|
|
The lookup string to search for in the given string. |
|
|
|
The index at which to start the search. The default is: |
|
|
|
The index at which to stop the search. The default is: |
|
Returns |
|
Usage Examples
RETURN apoc.text.indexesOf("Hello World, Hello, Hello", 'Hello') AS output;
output |
---|
[0, 13, 20] |
Starting from index 6, find the occurrences of 'Hello',
RETURN apoc.text.indexesOf("Hello World, Hello, Hello", 'Hello', 6) AS output;
output |
---|
[13, 20] |
Starting from index 6 up to index 20, find the occurrences of 'Hello',
RETURN apoc.text.indexesOf("Hello World, Hello, Hello", 'Hello', 6, 20) AS output;
output |
---|
[13] |