develooper Front page | perl.perl6.users | Postings from June 2018

Re: need second pair of eyes

Thread Previous | Thread Next
From:
ToddAndMargo
Date:
June 13, 2018 01:06
Subject:
Re: need second pair of eyes
Message ID:
38f8a15e-a68f-b5b7-f9c2-af6f44455382@zoho.com
On 06/12/2018 05:26 PM, Brandon Allbery wrote:
> No, you are stuck with
> 
>      $foo ~~ m|xxx| && $foo ~~ m|yyy|
> 
> or
> 
>      $foo ~~ m|xxx .* yyy|


Ah cool.  And it insures that they are "in a row"
now anywhere in the string, as with the double "if"

$ p6 'my $Line = "wine-patched/archive/staging-/xxxxx.tar.gz";if $Line 
~~ m| "wine-patched/archive/staging-/" .*? ".tar.gz" |  {say "yes"} else 
{say "no"};'

yes

Thank you!

Thread Previous | 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