0

で区切られたテキスト ブロックの一部を配列に割り当てることは可能ですか< >。例えば、

sometexthere <email@email.com> more text
more text moretext <another@email.com>

生成する必要があります

@array = qw(email@email.com another@email.com);

どうすればこれを達成できますか?

4

1 に答える 1

4
my @array = $text =~ /<([^<>]+)>/g;
于 2013-01-25T22:42:00.517 に答える