replace
replace copied to clipboard
Add named capture group support
We can use number of captured group:
npx replace '(.+)' "\$1" test.txt
But we are not able to use named capture group:
npx replace '(?<name>.+)' "\$name" test.txt
# or
npx replace '(?<name>.+)' "\${name}" test.txt
@ALMaclaine
@FreePhoenix888 I don't have any near term plans to improve the library. It was written rather poorly to begin with and there weren't adequate tests to ensure that any changes won't break other uses. This may change if I can get AI tools to figure out a good test suite.