it-tools icon indicating copy to clipboard operation
it-tools copied to clipboard

[TOOL IMPROVEMENT] Removal of prefixes/suffixes in lists

Open Steltek opened this issue 2 years ago • 1 comments

Sometimes you receive a list like this one:

- [email protected]
- [email protected]
- [email protected]

No computer in this world will accept these as arguments to commands with the extraneous "- " in them. Of course, you can run a find/replace in any text editor to replace "- " with nothing, but what if the list looks like this?

[email protected]
[email protected]
[email protected]

Now you're off to regex-land to try and remove the dash at the beginning without affecting the rest of the line.

It would be nice if the list converter could be given a prefix and suffix that it would remove from the beginning/end of each line.

Steltek avatar Oct 30 '23 22:10 Steltek

Hi @Steltek, @CorentinTh (and @steffenrapp, if you want to review), implemented in #1302

sharevb avatar Sep 21 '24 13:09 sharevb

Hi @Steltek , implemented: https://sharevb-it-tools.vercel.app/list-converter

And if you are interested in an up to date version of it-tools, with many improvements, new tools, and bug fixes, as this repo is almost no more maintained, I made a fork here : https://github.com/sharevb/it-tools (https://sharevb-it-tools.vercel.app/ and docker images https://github.com/sharevb/it-tools/pkgs/container/it-tools)

sharevb avatar Oct 28 '25 20:10 sharevb