variable=";CREATEDBY~string~1~~72~0~0~0~~~0;CREATEDBYNAME~string~1~~800~0~0~0~~~1;CREATEDBYYOMINAME~string~1~~800~0~0~0~~~2;CREATEDON~date~1~yyyy-MM-dd HH:mm:ss.SSS~26~0~0~0~~~3;CREATEDONUTC~date~1~yyyy-MM-dd HH:mm:ss.SSS~26~0~0~0~~~4"
How can I split each value which is between (;
and ~
)?
The result will be like CREATEDBY,CREATEDBYNAME,CREATEDBYYOMINAME,...
I have tried the below, but it's giving the first occurrence.
variable[variable.find(";")+1:myString.find("~")]
How do I get the list of strings by using the split?