Skip to content

Implement 0.39.0's regex replace #7

Description

@PgBiel

Sample impl:

let
   reRepl = from: to: str: builtins.concatStringsSep "" (builtins.map (x: if builtins.isList x then to else x) (builtins.split from str))
in reRepl "a+" "b" "Hello aaaaaaaaaaa the aaaaaaaa the a"

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestnix incompatibilitySome function works differently or doesn't work in the Nix target

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions