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.

Splitting large text file into smaller text files by line numbers using Python

I have a text file say really_big_file.txt that contains: line 1 line 2 line 3 line 4 ... line 99999 line 100000 I would …

python file split lines
How to split strings into characters in Scala

For example, there is a string val s = "Test". How do you separate it into t, e, s, t?

string scala character-encoding split character
Split multiple delimiters in Java

How I can split the sentences with respect to the delimiters in the string and count the frequency of words ? …

java split count delimiter frequency
How can I maximize a split window?

Invoking :help in Vim, I got the help manual page with split window. I want to maximize the help manual …

vim split editor
JS string.split() without removing the delimiters

How can I split a string without removing the delimiters? Let's say I have a string: var string = "abcdeabcde"; When …

javascript split delimiter
How can I split up a Git commit buried in history?

I flubbed up my history and want to do some changes to it. Problem is, I have a commit with …

git split commit revision-history
Splitting a string with multiple delimiters in Python

I'm using regular expressions to split a string using multiple delimiters. But if two of my delimiters occur next to …

python string split delimiter
how to add spaces between array items javascript

I am a beginner at javascript so I appreciate any help/advice given. My issue here is that I'm trying …

javascript arrays list split tostring
Difference between using StringTokenizer and String.split( )?

I've been using String[] split(String) of String class to split any string for some given delimiter, and it worked …

java string split stringtokenizer
Ruby split by whitespace

How can I write a Ruby function that splits the input by any kind of whitespace, and remove all the …

ruby split whitespace