StringReplace Op

StringReplace

replace occurrences of a string with another string


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 " "


Edit Documentation

Full Name
  • Ops.String.StringReplace
Visibility
  • Core Op - Official cables op
License
  • MIT
AuthorTest Patches


 

Example Patch Example StringReplace

Search for and replace a string with another string.

Open In Editor

INPUT PORTS


String (String)

incoming string

Search For (String)

find a string or character

Replace (String)

replace with this string

Replace What index (Number:integer )

ALL(0) or First(1) occurrence

OUTPUT PORTS


Result (String)

Patches using StringReplace

  • Examples
  • Public
  • My Patches

Changelog


created opuser avatarpandur - 2021-05-05 10:51
Ops.User.pandur.StringReplace renamed to Ops.String.StringReplaceuser avatarpandur - 2021-05-05 10:58