in reply to
RegEx related line split
You only had two capturing ()'s so $3 won't return anything your way. The .+ captures everything up to (d) since it is greedy.
To make your regex work:
Use the /g option.
Remove the ^ anchor at the start.
Remove the (.*?) at the end.
Add the $ option at the end in place of the a-z in the lookahead.
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.";
@lines = $RefLine =~ /(\([a-z]\).*?)(?=$|\([a-z]\))/g;
print ">>$_<<\n" foreach @lines;