Unable to split string by multiple characters.
String myString = 'abc$$$xyz';
string[] myArray = myString.Split('$$$');
System.Debug(myArray.Size());
I get result for myArray.Size = 1 and when myArray = 'abc$$$xyz'
Please shed some light
String.split() expects a regular expression, not a string.
Use
myString.Split('\\$\\$\\$');
(Thanks to @Mugambo)