develooper Front page | perl.perl6.users | Postings from October 2022

Re: how do I do a literal string in the target of a regex?

Thread Previous | Thread Next
From:
ToddAndMargo via perl6-users
Date:
October 30, 2022 01:35
Subject:
Re: how do I do a literal string in the target of a regex?
Message ID:
21e98050-09b4-3404-e42f-49199bcc5d34@zoho.com
On 10/29/22 14:28, ToddAndMargo via perl6-users wrote:
> On 10/29/22 13:07, Elizabeth Mattijsen wrote:
>  > $ echo "a/b/c/d" | raku -ne 'say .subst("/", Q/\\\/, :g)'
>  >
> 
> Hi Elizabeth,
> 
> Thank you for the subst workaround!

I created a keep of the subst.  Got to
love Raku. 101 ways of doing everything!


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