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.

Python: Split string by list of separators

In Python, I'd like to split a string using a list of separators. The separators could be either commas or …

python regex split separator
Grails: Splitting a string that contains a pipe

I’m trying to split a String. Simple examples work: groovy:000> print "abc,def".split(","); [abc, def]===> null …

java regex grails groovy split
Best way to split strings into an array

I'm developing a travel app, I have to read a txt file that contains all the states and countries, as …

arrays nsstring split token nsscanner
How does Hadoop process records split across block boundaries?

According to the Hadoop - The Definitive Guide The logical records that FileInputFormats define do not usually fit neatly into …

hadoop split mapreduce block hdfs
Split string on commas but ignore commas within double-quotes?

I have some input that looks like the following: A,B,C,"D12121",E,F,G,H,"I9,I8",J,…

python regex csv split double-quotes
Split string into sentences

I have written this piece of code that splits a string and stores it in a string array:- String[] …

java regex split abbreviation
Split comma-separated strings in a column into separate rows

I have a data frame, like so: data.frame(director = c("Aaron Blaise,Bob Walker", "Akira Kurosawa", "Alan J. Pakula", "…

r string split r-faq
Using velocity split() to split a string into an array doesnt seem to work

I HATE velocity and rarely ever use it but sometimes I am called upon at my job to do so. …

arrays apache split velocity
Why in Java 8 split sometimes removes empty strings at start of result array?

Before Java 8 when we split on empty string like String[] tokens = "abc".split(""); split mechanism would split in places marked …

java regex split java-8
Split PDF into multiple PDFs using iTextsharp

public int SplitAndSave(string inputPath, string outputPath) { FileInfo file = new FileInfo(inputPath); string name = file.Name.Substring(0, file.Name.LastIndexOf(".")); …

c# asp.net pdf split itextsharp