beta
cables is under heavy development.
There might be one or another bug, please let us know about it!

StringReplace Op

Ops.String.StringReplace


StringReplace
Namespace: Ops.String

Op author: pandur

replace occurrences of a string with another string


summary (oneliner)

This operator uses the JavaScript function replace() with a regex syntax. Usually you can simply type an alpha numeric string, but if you want to get fancy or need to replace a character such as a period, you will need to format your string replace according to the Regular Expression syntax ( https://en.wikipedia.org/wiki/Regular_expression ).

For example, replacing a period with a blank space would require you to seek "." and replace with a " "



doc

issues

example patch id

youtube id

caniuse query

collections

related ops

Inputs

String (String)

incoming string


Search For (String)

find a string or character


Replace (String)

replace with this string


Replace What index (integer /Number)

ALL(0) or First(1) occurrence


Outputs

Result (String)

Caught a mistake or want to contribute to the documentation?

Edit Documentationcancel save

Example StringReplace

Search for and replace a string with another string.

Open Example In Editor


Patches using StringReplace

Changelog


created op
2021-05-05 - pandur

Ops.User.pandur.StringReplace renamed to Ops.String.StringReplace
2021-05-05 - pandur