develooper Front page | perl.perl6.users | Postings from August 2019

Lookbehind assertion weirdness

Thread Next
Sean McAfee
August 22, 2019 19:26
Lookbehind assertion weirdness
Message ID:
This seems like a bug, but I thought I'd ask here before reporting it.

    $_ = '1:';
    s/.<?after '1:'>/x/;

This prints "1x".  Is that what's supposed to happen somehow?  I would have
thought that '1:' should only match a literal "1:", leaving nothing for the
dot to match.

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