StringReplace Op

StringReplace

replace occurrences of a string with another string


<p>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 ( <a href="https://en.wikipedia.org/wiki/Regular_expression">https://en.wikipedia.org/wiki/Regular_expression</a> ).</p> <p>For example, replacing a period with a blank space would require you to seek &quot;.&quot; and replace with a &quot; &quot;</p>


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


Example Patch Example StringReplace

Search for and replace a string with another string.

Open In Editor

INPUT PORTS


String (String)

<p>incoming string</p>

Search For (String)

<p>find a string or character</p>

Replace (String)

<p>replace with this string</p>

Replace What index (Number:

<i>integer</i>

)

<p>ALL(0) or First(1) occurrence </p>

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