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
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It only takes a minute to sign up.Sign up to join this community
String.split() expects a regular expression, not a string.
(Thanks to @Mugambo)