Top "Split" questions

Use this tag for questions about separating an item (e.g. a string) into parts, often by a delimiter or regular expression.

Split function in oracle to comma separated values with automatic sequence

Need Split function which will take two parameters, string to split and delimiter to split the string and return a …

oracle function plsql split delimiter
Splitting on last delimiter in Python string?

What's the recommended Python idiom for splitting a string on the last occurrence of the delimiter in the string? example: # …

python string list parsing split
Java String split removed empty values

I am trying to split the Value using a separator. But I am finding the surprising results String data = "5|6|7||8|9||"; String[] …

java string split
How can I split a text into sentences?

I have a text file. I need to get a list of sentences. How can this be implemented? There are …

python text split
Split string to equal length substrings in Java

How to split the string "Thequickbrownfoxjumps" to substrings of equal size in Java. Eg. "Thequickbrownfoxjumps" of 4 equal size should give …

java regex string split
How can I split a string into segments of n characters?

As the title says, I've got a string and I want to split into segments of n characters. For example: …

javascript arrays string split
Split large string in n-size chunks in JavaScript

I would like to split a very large string (let's say, 10,000 characters) into N-size chunks. What would be the best …

javascript regex string split
c++ boost split string

I'm using the boost::split method to split a string as this: I first make sure to include the correct …

c++ boost split
How to split a string and assign it to variables

In Python it is possible to split a string and assign it to variables: ip, port = '127.0.0.1:5432'.split(':…

string go split
To switch from vertical split to horizontal split fast in Vim

How can you switch your current windows from horizontal split to vertical split and vice versa in Vim? I did …

vim split