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
well, easiest way would be something like:
var address = theEncodedString.split(/~/) var name = address[0], street = address[1]