Skip to content

How to replace a suffix? #48

@bapcyk

Description

@bapcyk

Hello dear author, this package is brilliant.

It's not a bug, just a question: is it possible (and how?) to replace a suffix (or prefix) in a string? Because the replace replaces a fragment everywhere, for instance in the middle of a string. For example, I want to replace ".exe" - it's suffix/executable extension. All my attempts replace it in "aaa.exe.tail" too. I tried to use empty but it does not help.

replace (some anySym <* ".exe") "aaa.exe"  -- the simplest example

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions