I'd like to split the below string by only the first equal sign in that string
String:
s= 'ButtonParams=U3ViamVjdCxFbWFpbA=='
Desired_String:
s= ['ButtonParams','U3ViamVjdCxFbWFpbA==']
When I do s.split("="), I get the following, which is what I do not want:
s.split("=")
['ButtonParams', 'U3ViamVjdCxFbWFpbA', '', '']
I need to run this function across a list of strings where this is the case, so scalability is important here.