Hi all,
I am getting a string which has "_" (under-scores) as line separator.
How can I fine the underscore in a string and make a new string.
In order to explain it better, here is the example;
string = "this is a first line_this is a second line_this is third"
i want to separate this string into;
string1 = "this is a first line"
string2 = "this is a second line"
string3 = "this is third line"
And also the number of lines is unknown as its a dynamically generated string.
Please help
Thanks
I am getting a string which has "_" (under-scores) as line separator.
How can I fine the underscore in a string and make a new string.
In order to explain it better, here is the example;
string = "this is a first line_this is a second line_this is third"
i want to separate this string into;
string1 = "this is a first line"
string2 = "this is a second line"
string3 = "this is third line"
And also the number of lines is unknown as its a dynamically generated string.
Please help
Thanks