Delete parts of string consecutively

Well I would like to remove different things from a string if I removed 1 by 1 it would be something simple, but if I had to remove for example 10 or 20 characters it would become a bit more complicated if

This initial script works fine but I wish it were a little faster to be able to add what you want to remove

[image]

If I transform it into a list, it does not work as I wish, it should be the same result as in the first

Hi @Christhian ,

The Clockwork Package has a node for this String.ReplaceMultiple. (Note that you need to install the IronPython2.7 package aswell in some of the latest Dynamo versions).

4 Likes

Hello,
another possibility

Cordially
christian.stan

3 Likes

Python option :snake:

3 Likes

Thank you very much for all the answers, all three are excellent