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

acme: regex not mathing as much as possible #108

Open
pedramos opened this issue Aug 4, 2023 · 1 comment
Open

acme: regex not mathing as much as possible #108

pedramos opened this issue Aug 4, 2023 · 1 comment

Comments

@pedramos
Copy link

pedramos commented Aug 4, 2023

Considering the following text:

abc xyz

The following Edit command:

Edit ,x/[a-z]+/ s/.*/T&/g

Should result in

Tabc Txyz

But it seems like x is capturing single chars only, instead the full 3 char group, so the command results in :

TaTbTc TxTyTz

I tried to find the problem to fix it myself but could not find where the bug is. It seems to work fine in go sam and plan9port acme.

@pedramos
Copy link
Author

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

1 participant