Skip to content

Implement 0.39.0's regex replace #7

@PgBiel

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"

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