Would someone please help to understand how to split the below string which is having multiple occurrences for example (retail)? I would like to split or separate the below string as String1 and String2
Original String:
$5 copay per
prescription (retail) and
$12.50 copay per
prescription (home
delivery)
$15 copay per
prescription (retail) and
$37.50 copay per
prescription (home
delivery)
Output:
String1:
$5 copay per
prescription (retail) and
$12.50 copay per
prescription (home
delivery)
String2:
$15 copay per
prescription (retail) and
$37.50 copay per
prescription (home
delivery)
Would someone please help us to solve this .
Thanks a lot in advance for your help.