You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note perl6 -e 'say "aaa" ~~ m/(a ** 2..*) ** 2..*/' does what I would expect it to do (returns false). So does perl6 -e 'say "aaa" ~~ m/(a ** 2..*) ** {2..*}/'
Expected Behavior
Expected behaviro is returning false.
Actual Behavior
Returns a true value.
Steps to Reproduce
perl6 -e 'say "aaa" ~~ m/(a ** {2..*}) ** 2..*/'
Environment
Operating system: Ubuntu 16.04
Compiler version (perl6 -v): 2008.06 6.c
The text was updated successfully, but these errors were encountered:
The Problem
This regex, demonstrated here, returns true when it shouldn't (I think!).
This is a golfed exampe -
perl6 -e 'say "aaa" ~~ m/(a ** {2..*}) ** 2..*/'
Output:
Note
perl6 -e 'say "aaa" ~~ m/(a ** 2..*) ** 2..*/'
does what I would expect it to do (returns false). So doesperl6 -e 'say "aaa" ~~ m/(a ** 2..*) ** {2..*}/'
Expected Behavior
Expected behaviro is returning false.
Actual Behavior
Returns a true value.
Steps to Reproduce
perl6 -e 'say "aaa" ~~ m/(a ** {2..*}) ** 2..*/'
Environment
perl6 -v
): 2008.06 6.cThe text was updated successfully, but these errors were encountered: