in reply to Re: Parsing Text into Arrays..
in thread Parsing Text into Arrays..
my $quote = qr/"[^"]*"/; # Naive s{\G((?>.*?(?:$quote|(?=(\(\{|\}\)))))*?)\2} {$1 . ($2 eq '(\{' ? '[' : ']')}eg;
You didn't have it in your pattern, and my pattern is based on your, but you should replace "})" with "]," if it shall become a list.
ihb
|
|---|