Replace String

Replaces the first occurrence of the given value from an array with a new value. If “replaceAll” is true, replace all occurrences.

Installation

To use this node enable omni.graph.nodes in the Extension Manager.

Inputs

Name

Type

Descripton

Default

Replace (inputs:replace)

['string', 'token']

The string to replace within the base string.

None

Replace All (inputs:replaceAll)

bool

If true, replace all occurrences of the value.

False

String (inputs:string)

['string', 'token']

The base string.

None

Value (inputs:value)

['string', 'token']

The sub string to set within the base string. Can be an empty string to remove.

None

Outputs

Name

Type

Descripton

Default

String (outputs:string)

['string', 'token']

The output string.

None

Metadata

Name

Value

Unique ID

omni.graph.nodes.ReplaceString

Version

1

Extension

omni.graph.nodes

Has State?

False

Implementation Language

C++

Default Memory Type

cpu

Generated Code Exclusions

None

uiName

Replace String

Categories

function

Generated Class Name

OgnReplaceStringDatabase

Python Module

omni.graph.nodes