Use this tag for questions about separating an item (e.g. a string) into parts, often by a delimiter or regular expression.
It is most often applied when splitting a string by a delimiter, such as when parsing a comma separated value file. Some languages such as Ruby
and Java
support splitting a string according to regular expression as well.
A split string produces an array of strings.
split
can also refer to
- the perl
split
function - the ruby
String#split
method - the python
str.split
method - the php
explode
function. - the javascript
split
method - the java
split
method - the c#/vb.net/vba
String.Split
method - the unix/linux
split
command line utility - the sql-server
STRING_SPLIT
function
All these functions/methods split strings on a delimiter.
The split
function in r divides data into groups by a specified factor.