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.

Scanner vs. StringTokenizer vs. String.Split

I just learned about Java's Scanner class and now I'm wondering how it compares/competes with the StringTokenizer and String.…

java java.util.scanner tokenize split
Tokenizing Error: java.util.regex.PatternSyntaxException, dangling metacharacter '*'

I am using split() to tokenize a String separated with * following this format: name*lastName*ID*school*age % name*lastName*…

java regex split tokenize
Split string into tokens and save them in an array

How to split a string into an tokens and then save them in an array? Specifically, I have a string "…

c split strtok
How to split a file into equal parts, without breaking individual lines?

I was wondering if it was possible to split a file into equal parts (edit: = all equal except for the …

bash shell unix split
Split comma separated column data into additional columns

I have comma separated data in a column: Column ------- a,b,c,d I want to split the comma …

postgresql split delimiter postgresql-8.4
A method to reverse effect of java String.split()?

I am looking for a method to combine an array of strings into a delimited String. An opposite to split(). …

java string join split
Splitting a continuous variable into equal sized groups

I need to split/divide up a continuous variable into 3 equal sized groups. Example data frame: das <- data.…

r variables split continuous
Parameter "stratify" from method "train_test_split" (scikit Learn)

I am trying to use train_test_split from package scikit Learn, but I am having trouble with parameter stratify. …

split scikit-learn training-data test-data
splitting a number into the integer and decimal parts

Is there a pythonic way of splitting a number such as 1234.5678 into two parts (1234, 0.5678) i.e. the integer part and …

split floating-point python
Java equivalent to Explode and Implode(PHP)

I am new in Java although had a good experience in PHP, and looking for perfect replacement for explode and …

java arrays string split