develooper Front page | perl.perl6.users | Postings from August 2017

Help me be greedy!

Thread Next
August 4, 2017 19:26
Help me be greedy!
Message ID:
Hi All,

I NEED TO BE GREEDY!  HAHA HAHA <miniacle laughter continues>.

Okay, I am back in control of myself (for the moment).

What am I doing wrong here?

perl6 -e 'my $x="a b c d e f"; $x ~~ m/.*?(c.*?).*f/; say "<$0>";'

I am after
<c d e >

I want the space at the end too

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About