StringReplace¶
Replace a pattern in a string by a subtitution string.
The pattern can either be a literal string or a regular expression. Version 1.0.0
Ports/Properties¶
string¶
String to process.
- verbose name: String
- default value: None
- port type: DataPort
- value type: str (can be None)
- data direction: INOUT
pattern¶
Pattern to replace in string.
- verbose name: Pattern
- default value: None
- port type: StringPort
- value type: str (can be None)
substitution¶
String to insert in place of the pattern. If using regex, use \n where n is the group number, to specify matched groups in the pattern.
- verbose name: Substitution
- default value:
- port type: StringPort
- value type: str (can be None)
pattern_type¶
Type of pattern search for. Literal means that each literal occurrence of the pattern will be substituted by the substitution string. Regex means that the pattern is interpreted as a regular expression.
- verbose name: Pattern Type
- default value: literal
- port type: EnumPort
- value type: str (can be None)
set_breakpoint¶
Set a breakpoint on this node. If this is enabled, your debugger (if one is attached) will trigger a breakpoint.
- verbose name: Set Breakpoint (Debug Only)
- default value: False
- port type: BoolPort
- value type: bool (can be None)
metadata¶
User-definable meta-data associated with the node. Usually reserved for technical purposes.
- verbose name: Metadata
- default value: {}
- port type: DictPort
- value type: dict (can be None)