http://www.perlmonks.org?node_id=29461

Adam has asked for the wisdom of the Perl Monks concerning the following question: (regular expressions)

my $string = "first-item \"second item\" third-item"; my @items = split /???/, $string; my $i = 0; print ++$i, ": $_\n" for @items; # Would print: # 1: first-item # 2: "second item" # 3: third-item

Originally posted as a Categorized Question.