I have a string in a variable
ie;
var test= "http://www.gmail.com@%@http://www.google.com@%@http://www.yahoo.com@%@";
i have this thing in my javascript function.
i want to split this string from the occurences of the special characters
ie: @%@
so after splitting
i want to push this thing to an array
like this
var spcds = [];
spcds.push("http://www.gmail.com");
spcds.push("http://www.google.com");
spcds.push("http://www.yahoo.com");
what i need is just split the string variable
and push that to spcds array.
how can i do this in my js function.
so the resultant values will have to store to another variable which i have to push to the array spcds.