Skip Menu |
Report information
Id: 130127
Status: new
Priority: 0/
Queue: perl6

Owner: Nobody
Requestors: alex.jakimenko [at] gmail.com
Cc:
AdminCc:

Severity: (no value)
Tag: regex
Platform: (no value)
Patch Status: (no value)
VM: (no value)



Subject: [REGEX] Excluded endpoints in ranged quantifiers do not work at all (/ .**{2^..^2} /)
From: Aleks-Daniel Jakimenko-Aleksejev <alex.jakimenko [...] gmail.com>
Date: Fri, 18 Nov 2016 00:32:08 +0200
To: rakudobug [...] perl.org
Download (untitled) / with headers
text/plain 213b
Code:
say ‘abcefghij’ ~~ / .**{0..^2} /

Result:
「ab」

I expected 「a」


Code:
say ‘abcefghij’ ~~ / .**{2^..^2} /

Result:
「ab」

I expected it not to match anything (as if it was 3..1).


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

For issues related to this RT instance (aka "perlbug"), please contact perlbug-admin at perl.org