I am trying to save the groups in a string to an array so that I can use them in individual variables if I need to. For this I use split but for some reason I only
ultimate_array = string_final.split("#\\$");
The reason your split is not working correctly is that split uses regex and "$" is a special character for regexes(drekka)