New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
perl5 regexp: wrong content in capture buffer #16250
Comments
From wolf-dietrich_moeller@t-online.deThe following test program shows a wrong content of a capture BTW, the same error occurs also under Perl 5.16.3, so the bug for ( 'abcd5678', # ok
'abcde5678', # error
'abcdef5678', # ok
'abcdefg5678' ) { # ok
m'b(?=.*(?<=(?<=(.{4}))?(.{5})).$)';
print '$1: "',$1//'undef','" $2: "',$2//'undef',"\"\n" } Perl Info
|
From zefram@fysh.orgWolf-Dietrich Moeller wrote:
I concur with your analysis. The output that I get is $1: "undef" $2: "cd567" The nature of the regexp is such that where $1 is captured it should
Much older than that. The same thing happens on 5.005_03, which is the -zefram |
The RT System itself - Status changed from 'new' to 'open' |
From @demerphqI have a bit if familiarity with this, but the prospect of dealing Yves -- |
From @Smylersdemerphq wrote:
The lookahead isn't required to trigger the bug; this still includes 'd' 'abcde5678' =~ /b .* (?<= (?<=(.{4}))? (.{5}) ) .$/x; Smylers |
Migrated from rt.perl.org#132453 (status was 'open')
Searchable as RT132453$
The text was updated successfully, but these errors were encountered: