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

Backtracking control (:) needs a better example #629

Closed
AlexDaniel opened this issue Jun 23, 2016 · 2 comments
Closed

Backtracking control (:) needs a better example #629

AlexDaniel opened this issue Jun 23, 2016 · 2 comments
Labels
docs Documentation issue (primary issue type)

Comments

@AlexDaniel
Copy link
Member

https://doc.perl6.org/language/regexes#Preventing_backtracking%3A_%3A

    say so 'abababa' ~~ /a .* aba/   # True
    say so 'abababa' ~~ /a .*: aba/  # False

Why would anybody want to write .*:? We need a better example.

@AlexDaniel AlexDaniel added the docs Documentation issue (primary issue type) label Jun 23, 2016
@JJ
Copy link
Contributor

JJ commented Mar 24, 2018

Why would anyone want to match abababa? That's why I introduced #1748
We do need a better example

@JJ JJ added the JJ TPF Grant label May 2, 2018
@JJ
Copy link
Contributor

JJ commented May 2, 2018

Some info on backtracking

@JJ JJ removed the JJ TPF Grant label May 14, 2018
@JJ JJ closed this as completed in 4c75cd9 May 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation issue (primary issue type)
Projects
None yet
Development

No branches or pull requests

2 participants