mesh - 2.gh (18.1 KB)
The goal is to eliminate all of the text on the panel at once.
My guess is the best wayt o do this is in python or c#; But you can do this with native components as well if you use the “characters” component, graft and then check each character. If you want it for combinations of characters you would need some more complex logic to solve it.
But in this specific case you don’t need the “remove” list to be dynamic, so I would just repeat the replace component 4 times in a row, one for each character you want to remove.
mesh - 2 a.gh (11.4 KB)
Cleaning up data like you ask is best handled with Regular Expressions. Using the Regex Replace component from the Greg plugin (available from the Package Manager) makes your ask very simple:
mesh - 2 - regex.gh (27.0 KB)
Or the FindAll component:
mesh - 2 - regex2.gh (31.5 KB)
HTH
Jeremy
@leopoldomonzani 's input is really insightful by broadening horizons to WildCard and RegEx syntax.
Used WildCard syntax here
The plugin seems to be exclusively for R8.
Its for R8 and later. That’s because its written in Python 3 which is not available in earlier versions. Are you on Rhino 7?
Yup, till Rhino for Linux, I suppose.