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!

Reply via email to