Rename datasources with Regex

../../../../_images/datasource_rename.svg

Applies a regular expression to modify the PATH of a datasource.

Documentation

Auto generated list version of Rename datasource with Regex.

In this version, the following ports from the original nodes have been changed to lists which the node loops over:

Looped Inputs:

port-index:0.

Looped Outputs:

port-index:0.

For details see the original node.

Definition

Input ports

input [datasource]

Datasource input

Output ports

output [datasource]

Datasource output

Configuration

Replace (replace)

Text to replace the matched parts with. Use eg. \1 to substitute the first matched (parenthesis) group.

Search (search)

Part of path to replace using a regular expression. Use “$” for end of name and “^” for the beginning. Learn more about Regular expression syntax in the documentation appendix.

Implementation

class node_rename.RenameDatasources[source]