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

how do I match the next two characters?

Thread Next
From:
ToddAndMargo
Date:
January 16, 2018 08:47
Subject:
how do I match the next two characters?
Message ID:
5b42b4a8-6e96-42fa-6f76-f057fa61fa76@zoho.com
Hi All,

I want to match the next two character (don't care what
they are) in the following

I will use ?? for the next two character, but that doesn't work
$x ~~ m/.*?(sd??).*/;

I want $0 to include the "sd" and the next two characters, whatever
they are.


Many thanks,
-T

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