I have a string like ";a;b;c;;e". Notice that there is an extra semicolon before e. I want the string to be split in a, b, c;, e. But it gets split like a, b, c, ;e.
My code is
var new_arr = str.split(';');
What can I do over here to get the result I want?
Regards