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]\)))(.*?)/;
print "01\t$1\n02\t$2\n03\t$3\n";
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