Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

split function to split a string on a delimiter #553

Open
jdidion opened this issue Apr 4, 2023 · 0 comments
Open

split function to split a string on a delimiter #553

jdidion opened this issue Apr 4, 2023 · 0 comments

Comments

@jdidion
Copy link
Collaborator

jdidion commented Apr 4, 2023

Array[String] split(String, String)

Splits the first argument (input) each time it encounters the second argument (pattern), where pattern is a POSIX ERE. This is the inverse of the sep function for a fixed pattern.

One impetus for this is to support deserialization of a delimited string to a string array.

Another option would be to add an optional second parameter to read_lines for the delimiter, which would default to \n.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant