Re: Need regex in the middle wildcard help

2023-06-19 Thread ToddAndMargo via perl6-users
On 6/19/23 07:39, Richard Hainsworth wrote: HI Todd, Some more clean up: On 19/06/2023 12:41, ToddAndMargo via perl6-users wrote: This is my test program: #!/bin/raku print "\n"; my Str $x = Q[href="wike-2.0.1-1.fc38.noarch.rpm">wike-2.0.1-1.fc38.noarch.rpm 27-Apr-2023 01:53  143K] ~    

Re: Need regex in the middle wildcard help

2023-06-19 Thread Richard Hainsworth
HI Todd, Some more clean up: On 19/06/2023 12:41, ToddAndMargo via perl6-users wrote: This is my test program: #!/bin/raku print "\n"; my Str $x = Q[href="wike-2.0.1-1.fc38.noarch.rpm">wike-2.0.1-1.fc38.noarch.rpm 27-Apr-2023 01:53  143K] ~

Re: Need regex in the middle wildcard help

2023-06-19 Thread ToddAndMargo via perl6-users
On 6/19/23 03:03, ToddAndMargo via perl6-users wrote: On 6/18/23 05:38, ToddAndMargo via perl6-users wrote: Hi All, I know how to do this with several regex's and words. What I'd like to learn is how to remove something from the middle with regex using a wild card. And I can't figure it out

Re: Need regex in the middle wildcard help

2023-06-19 Thread ToddAndMargo via perl6-users
On 6/18/23 05:38, ToddAndMargo via perl6-users wrote: Hi All, I know how to do this with several regex's and words. What I'd like to learn is how to remove something from the middle with regex using a wild card. And I can't figure it out #!/bin/raku print "\n"; my Str $x =

Subject: Re: Need regex in the middle wildcard help

2023-06-18 Thread Joseph Brenner
References: Try something like this, perhaps: $x ~~ s:i/ ^ (.*?) '' .*?

Need regex in the middle wildcard help

2023-06-18 Thread ToddAndMargo via perl6-users
Hi All, I know how to do this with several regex's and words. What I'd like to learn is how to remove something from the middle with regex using a wild card. And I can't figure it out #!/bin/raku print "\n"; my Str $x = Q[wine-7.12-3.fc37.i686.rpm23-Jul-2022 19:11 11K print "1