apoc.text.split
Function APOC Core
apoc.text.split(text, regex, limit) - splits the given text around matches of the given regex.
Signature
apoc.text.split(text :: STRING?, regex :: STRING?, limit = 0 :: INTEGER?) :: (LIST? OF ANY?)
Usage Examples
RETURN apoc.text.split('Hello World', ' ') AS output;
output |
---|
["Hello", World"] |
RETURN apoc.text.split('Hello World', ' ') AS output;
output |
---|
["Hello", "", "World"] |
RETURN apoc.text.split('Hello World', ' +') AS output;
output |
---|
["Hello", "World"] |