nickwest has asked for the wisdom of the Perl Monks concerning the following question:
Hello!
aaa bbb ccc
But I need one more output - 'aaa bbb ccc ddd ccc'
The string may consist more 'ccc' words.
result:$_ = 'aaa bbb ccc ddd ccc eee'; (@qqq) = /(aaa.*?ccc)/g; print join("/n", @qqq);
aaa bbb ccc
But I need one more output - 'aaa bbb ccc ddd ccc'
The string may consist more 'ccc' words.
Back to
Seekers of Perl Wisdom