Javascript Reference
Categories: String

javascript String split( )

@March 15, 2008, 1:22 a.m.
split( )Firefox/Netscape/NN 3 IE 4 ECMA 1  

split(delimiter [, limitInteger])

  

Returns a new array object whose elements are segments of the current string. The current string is divided into array entries at each instance of the delimiter string specified as the first parameter of the method. The delimiter does not become part of the array. You do not have to declare the array prior to stuffing the results of the split( ) method. For example, if a string consists of a comma-delimited list of names, you can convert the list into an array as follows:

var listArray = stringList.split(",");
 

You may also use a regular expression as the parameter to divide the string by a pattern rather than a fixed character.

 
Parameters
 
  • A string or regular expression that defines where the main string is divided into elements of the resulting array.
  • An optional integer that restricts the number of items converted into array elements.
 
Returned Value

Array.

lipitor 20mg usa <a href="https://lipiws.top/">buy lipitor 20mg pills</a> atorvastatin 80mg for sale
Cmutlc - 10 months
order atorvastatin 10mg without prescription <a href="https://lipiws.top/">atorvastatin 40mg cheap</a> lipitor order
Uhefui - 10 months

Powered by Linode.