JavaScript Explode
//split into array of strings.
var str = "Well, how, are , we , doing, today";
var res = str.split(",");
Grepper
//split into array of strings.
var str = "Well, how, are , we , doing, today";
var res = str.split(",");
var myString = "An,array,in,a,string,separated,by,a,comma";
var myArray = myString.split(",");
/*
*
* myArray :
* ['An', 'array', 'in', 'a', 'string', 'separated', 'by', 'a', 'comma']
*
*/
const str = 'Hello!';
console.log(Array.from(str)); // ["H", "e", "l", "l", "o", "!"]
var myString = 'no,u';
var MyArray = myString.split(',');//splits the text up in chunks
string.split('-');
var test= "Hi I am a fullstack developper";
var result= test.split("l");
//return:
// [Hi I am a fu,,stack deve,lopper]
/*the split methode replace the (letter/symbole) into the
brackets to "," and transform it to array.*/