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

Help me be greedy!

Thread Next
From:
ToddAndMargo
Date:
August 4, 2017 19:26
Subject:
Help me be greedy!
Message ID:
05ce7514-e74a-652b-2b5f-25fb30fda224@zoho.com
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>";'
<c>

I am after
<c d e >

I want the space at the end too

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About