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
another matching finding by pcre author #835
Comments
From @jhiOne more from PCRE (ftp://ftp.cus.cam.ac.uk/pub/software/programs/pcre/) ./perl -wle '"a" =~ /^(a)?a$/;print $1' why does this match? ./perl -wle '"a" =~ /^(a)?(?(1)a|b)+$/;print $1' Perl Info
|
From [Unknown Contact. See original ticket]In message <199911101300.PAA16873@mimosa.hut.fi>, : One more from PCRE (ftp://ftp.cus.cam.ac.uk/pub/software/programs/pcre/) It does match, but greed makes the ? give up its a, leaving $1 empty: #! /usr/bin/perl -w use strict; print q{"a" =~ /^(a)?a$/}, "\n"; : why does this match? That looks like a bug to me. It should match, but $1 should be empty Greg |
Migrated from rt.perl.org#1763 (status was 'resolved')
Searchable as RT1763$
The text was updated successfully, but these errors were encountered: