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 string only on first instance - java

I want to split a string by '=' charecter. But I want it to split on first instance only. …

java string split
How to file split at a line number

I want to split a 400k line long log file from a particular line number. For this question, lets make …

linux shell split filesplitting
sscanf in Python

I'm looking for an equivalent to sscanf() in Python. I want to parse /proc/net/* files, in C I could …

python parsing split scanf procfs
How can I parse a CSV string with JavaScript, which contains comma in data?

I have the following type of string var string = "'string, duppi, du', 23, lala" I want to split the string into …

javascript regex split
PHP: Split string into array, like explode with no delimiter

I have a string such as: "0123456789" and need to split EACH character into an array. I for the hell of …

php string arrays split explode
PHP: Split a string in to an array foreach char

I am making a method so your password needs at least one captial and one symbol or number. I was …

php arrays split passwords validation
how to get the last part of a string before a certain character?

I am trying to print the last part of a string before a certain character. I'm not quite sure whether …

python string python-2.7 split slice
How to split large text file in windows?

I have a log file with size of 2.5 GB. Is there any way to split this file into smaller files …

windows text cmd split size
Java: How to split a string by a number of characters?

I tried to search online to solve this question but I didn't found anything. I wrote the following abstract code …

java string split numbers character
Cancel split window in Vim

I have split my windows horizontally. Now how can I return to normal mode, i.e. no split window just …

vim split window