This patch adds a node that can be used to find and replace strings inside of the input string.
There are two modes:
- Default, simple find and replace.
- Regex, using regular expressions for more control.
Simple mode:
Regex mode:
Differential D12721
Geometry Nodes: "Replace in String" node Authored by Erik Abrahamsson (erik85) on Sep 30 2021, 11:00 PM.
Details This patch adds a node that can be used to find and replace strings inside of the input string. There are two modes:
Simple mode: Regex mode:
Diff Detail
Event TimelineComment Actions Messing with the regular expressions in T91692, I got the regular expression mode to throw an exception. This should be caught. Ideally that would be a warning message for the node too, but we don't have an API for warning messages from function/field nodes currently. Other than that, it seemed to work quite well. Maybe "Replace in String" is a more obvious name? Comment Actions Renamed from "Replace String" to "Replace in String". Comment Actions
|