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.

Git: Stage into Commit, what is the right workflow?

I just created a big piece of code I want to commit in several separate commits. So I can stage …

git commit split staging
Bash split string

I have the following data in array: MY_ARR[0]="./path/path2/name.exe 'word1 word2' 'name1,name2'" MY_…

string bash awk split cut
Split string and get last element

Let's say I have a column which has values like: foo/bar chunky/bacon/flavor /baz/quz/qux/bax I.…

regex google-sheets split google-sheets-formula re2
Split large Git repository into many smaller ones

After successfully converting an SVN repository to Git, I now have a very large Git repository that I want to …

git split repository git-filter-branch
Extract string within parentheses - PYTHON

I have a string "Name(something)" and I am trying to extract the portion of the string within the parentheses! …

python string split extract
How can I switch focus after buffer split in emacs?

I would like that after splitting the window (C-x 3 or C-x 2) to be able to automatically get to cursor in …

emacs window split emacs23
Javascript won't split using regex

Since I started writing this question, I think I figured out the answers to every question I had, but I …

javascript regex split lookahead
Split string by length in Golang

Does anyone know how to split a string in Golang by length? For example to split "helloworld" after every 3 characters, …

string split go string-length
How do you make parentheses match height when they're split between lines in LaTeX math?

Consider the following example \begin{equation} \begin{split} f = & \left( \frac{a}{b} + \right. \\ & \left. c \right) + d \…

split latex parentheses tex
R break corpus into sentences

I have a number of PDF documents, which I have read into a corpus with library tm. How can one …

r split tm sentence qdap