I am trying to split this string to an array, I will later convert this array to a dictionary
let string = "test=1&name=Noodle&item=100"
let edit = string.components(separatedBy: "=")
// string.components(separatedBy: "=" && "&")???
But this only separate the string by one character, which is "="
What I am trying to achieve is to separate the string with two character, "=" and "&". How can I achieve that?