I have this string
\'john smith~123 Street~Apt 4~New York~NY~12345\'
Using JavaScript, what is the fastest way to parse this into
Something like:
var divided = str.split("/~/"); var name=divided[0]; var street = divided[1];
Is probably going to be easiest