Skip to content

acme: regex not mathing as much as possible #108

@pedramos

Description

@pedramos

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions