Skip to content
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

Excluded endpoints with Ranges in regex quantifiers don't get excluded #6550

Closed
p6rt opened this issue Sep 26, 2017 · 3 comments
Closed

Excluded endpoints with Ranges in regex quantifiers don't get excluded #6550

p6rt opened this issue Sep 26, 2017 · 3 comments
Labels
regex Regular expressions, pattern matching, user-defined grammars, tokens and rules

Comments

@p6rt
Copy link

p6rt commented Sep 26, 2017

Migrated from rt.perl.org#132166 (status was 'rejected')

Searchable as RT132166$

@p6rt
Copy link
Author

p6rt commented Sep 26, 2017

From @zoffixznet

Expected the first to not match and second to match at most 2 "x"es

<Zoffix__> m​: say "x" ~~ / "x" ** {1^..3}/
<camelia> rakudo-moar 8cf083​: OUTPUT​: «「x」␤»
<Zoffix__> m​: say "xxxxxx" ~~ / "x" ** {1^..^3}/
<camelia> rakudo-moar 8cf083​: OUTPUT​: «「xxx」␤»

@p6rt
Copy link
Author

p6rt commented Sep 26, 2017

From @zoffixznet

On Tue, 26 Sep 2017 03​:15​:03 -0700, cpan@​zoffix.com wrote​:

Expected the first to not match and second to match at most 2 "x"es

<Zoffix__> m​: say "x" ~~ / "x" ** {1^..3}/
<camelia> rakudo-moar 8cf083​: OUTPUT​: «「x」␤»
<Zoffix__> m​: say "xxxxxx" ~~ / "x" ** {1^..^3}/
<camelia> rakudo-moar 8cf083​: OUTPUT​: «「xxx」␤»

Dupe of RT#​130127​: https://rt-archive.perl.org/perl6/Ticket/Display.html?id=130127

Rejected.

@p6rt p6rt closed this as completed Sep 26, 2017
@p6rt
Copy link
Author

p6rt commented Sep 26, 2017

@zoffixznet - Status changed from 'new' to 'rejected'

@p6rt p6rt added the regex Regular expressions, pattern matching, user-defined grammars, tokens and rules label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
regex Regular expressions, pattern matching, user-defined grammars, tokens and rules
Projects
None yet
Development

No branches or pull requests

1 participant