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

Implement lookaround #1

Open
mdinger opened this issue Sep 16, 2015 · 3 comments
Open

Implement lookaround #1

mdinger opened this issue Sep 16, 2015 · 3 comments
Milestone

Comments

@mdinger
Copy link
Owner

mdinger commented Sep 16, 2015

  • lookahead - foo <?after bar> matches foo in foobar
  • negative lookahead - foo <!after bar> matches foo in foobaz
  • lookbehind - <?before foo> bar matches bar in foobar
  • negative lookbehind - <!before foo> bar matches bar in sushibar

An example with both: <?before foo> bar <?after baz> matches bar in foobarbaz

This is different from Perl 6 as noted in perl_changes and is subject to change. I'll need to get experience using it and then compare. Perl 6 may have gotten it correct but I'm not sure or convinced. Granted, I don't think deviating from Perl 6 shouldn't be taken lightly.

I have a PR for this but it doesn't work correctly and I have to do a major revision. Not sure when I'll get to it.

@mdinger mdinger added this to the 0.0.3 milestone Sep 16, 2015
@olorin37
Copy link

It would be great to propagate raku / perl6 regexes to other languages and Rust seems good for the beginning...

@mdinger
Copy link
Owner Author

mdinger commented Dec 10, 2021

I have not worked on this for a very long time and currently have no plans to currently. If someone decides to start working on this, I can add them as a collaborator or something similar so they can start doing cool things with it.

@olorin37
Copy link

olorin37 commented Dec 11, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants