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
minimal matching discrepancy found by pcre author #834
Comments
From @jhiThe author of the PCRE (Perl-Compatible Regular Expressions) ./perl -wle '"aba" =~ /^(a(b)?)+$/;print $2' ./perl -wle '"aabbaa" =~ /^(aa(bb)?)+$/;print $2' Perl Info
|
From [Unknown Contact. See original ticket]In message <199911101255.OAA16865@mimosa.hut.fi>, : ./perl -wle '"aabbaa" =~ /^(aa(bb)?)+$/;print $2' That's because there's no bb at the end: #! /usr/bin/perl -w use strict; print q{"aabbaa" =~ /^(aa(bb)?)+$/}, ":\n"; print q{"aabbcc" =~ /^((?:aa|cc)(bb)?)+$/}, ":\n"; Greg |
From [Unknown Contact. See original ticket]
But not in 5.004_02, it prints Good luck, |
From [Unknown Contact. See original ticket]Jarkko Hietaniemi writes:
All his remarks are correct and I more or less tracked them down to Say, I have no idea why REx engine works clean in so many cases. I It looks like any bug report was leading to a fix or two, and the Hope this helps, |
Migrated from rt.perl.org#1762 (status was 'resolved')
Searchable as RT1762$
The text was updated successfully, but these errors were encountered: