GeoNodes Text Search String with optional RegEx
A node for Geonode node that would perform a search on a text string and output a count of hits. The node would have two input sockets, one for the 'text to be queried' and the other for a 'text containing the search string or regular expression'. For linux fans this would be grep. One output socket would output 0 if no strings found, -1 for an error, and n > 0 if the stearch string was found one or more times. The other will be a delimited concatenation string of the hits. Like the grep output.
2 Comments
What is the practical use of this, in geometry nodes?
Not saying there isn't one, just cannot determine what it is.
One perhaps label sections of geometries, and ascribe a transform to these sections in a (aaa,nnn,nnn...) format. Generating a stack of transforms and associated geometries through a grammar would be extremely useful. This node combined with the switch node and boolean logic would open up an easy route to create advanced Lidenmayer systems, iterative function systems, state machines, context free grammar.... it would be powerful for those that can wield it.