I am trying to split the following line and would like to process individual parts.
my $RefLine = "(a) This is first line. (b) This is second line; (c) Th
+is is different line 32. (d) Here is the last line.";
$RefLine =~ /^(\([a-z]\) .+ (?=\([a-z]\)))(.*?)/;
I am not actually splitting in the above example but I am trying to make a match so that I can split individual lines. Here in my case the pattern matches "(a) .... to 32."
Not sure how to get them in an array like
(a) This is first line.
(b) This is second line;
(c) This is different line 32.
(d) Here is the last line.
Appreciate any help