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

Re: I need unprintable regex help

Thread Previous | Thread Next
Brandon Allbery
October 20, 2018 16:29
Re: I need unprintable regex help
Message ID:
The escape sequence \x allows you to embed characters by their code.
"\x0D\x0A" is the same as the variable.

I'm not sure what you thought I was showing you on IRC last night, since I
pointed this out multiple times.

On Sat, Oct 20, 2018 at 3:43 AM ToddAndMargo via perl6-users <> wrote:

> Hi All,
>     my Str $CrLf   = chr(0x0d) ~ chr(0x0a);
>     $String ~~ s:global/ $CrLf /\n/;
> How do I get rid of the extra $CrLf variable?
> Many thanks,
> -T

brandon s allbery kf8nh

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About