Text Splitter Built-ins¶
The splitLines
function splits a string argument at the newline or carriage return/line feed characters and returns a list of lines. CR/LF characters are removed from the line endings.
Syntax
1 | <result List<String>> := splitLines(<text String>) |
Returns
A list of lines with newline and carriage return/line feed characters removed.
Example
1 2 3 | lines := splitLines("Hello\nWorld") println(lines[0]) // prints "Hello" println(lines[1]) // prints "World" |