Re: I need help understanding a match

2025-01-16 Thread ToddAndMargo via perl6-users
On 1/16/25 1:41 AM, Todd Chester via perl6-users wrote: First I should apologize for one of my earlier posts. The first token was a bit of a jumble. I think now you just want the literal string "download" to start your capture. Hi Bill, Don't apologize. You are teaching me at trans light spe

Re: I need help understanding a match

2025-01-16 Thread Todd Chester via perl6-users
Thank you! On 1/13/25 18:20, William Michels via perl6-users wrote: Hi Todd, First I should apologize for one of my earlier posts. The first token was a bit of a jumble. I think now you just want the literal string "download" to start your capture. As per usual I tried a few different appro

Re: I need help understanding a match

2025-01-13 Thread William Michels via perl6-users
Hi Todd, First I should apologize for one of my earlier posts. The first token was a bit of a jumble. I think now you just want the literal string "download" to start your capture. As per usual I tried a few different approaches to your regex problem, and posted what I thought was the best o

Re: I need help understanding a match

2025-01-12 Thread ToddAndMargo via perl6-users
On 1/12/25 3:11 AM, ToddAndMargo via perl6-users wrote: `?download ^`   # positive look-behind, match but don`t capture `download `   # `^` means "look behind" Opps, that should be: `?before ^` # positive look-behind, match but don`t capture `download ` # `^` m

Re: I need help understanding a match

2025-01-12 Thread ToddAndMargo via perl6-users
Hi Bill, Please correct my notes. Many thanks, -T Explanation: my @y = $x ~~ m:g/ .*? | \h+ > /; `m:g` # match and global `\...\` # the constrains (beginning and end) of the match `<...>` # constraints of instructions inside the match First instruction: `` `?download ^` # p

Re: I need help understanding a match

2025-01-12 Thread ToddAndMargo via perl6-users
On 1/12/25 12:59 AM, William Michels via perl6-users wrote: ~$ /Users/admin/rakudo/rakudo-2024.09/rakudo-moar-2024.09-01-macos- arm64-clang/bin/raku -e '  \    my Str $AltClickHere = lines[0];  \    my @AltArray =       ($AltClickHere ~~ m:g/           download        #literal           .*?

Re: I need help understanding a match

2025-01-12 Thread William Michels via perl6-users
~$ /Users/admin/rakudo/rakudo-2024.09/rakudo-moar-2024.09-01-macos-arm64-clang/bin/raku -e ' \ my Str $AltClickHere = lines[0]; \ my @AltArray = ($AltClickHere ~~ m:g/ download#literal .*? #any-character, one-or-more, frugal > #po