bildwelt
E2E FORUM
E2E Bridge E2E Commerce

Replacement of literals in a string

E2E Forum Modeling & Development Replacement of literals in a string

This topic contains 1 reply, has 2 voices, and was last updated by  Peter Jungblut 4 years, 1 month ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #695

    Jürgen
    Moderator

    I would like to replace some literals in a text:

    e.g. This is my nr in a text  (replace “nr” to “number”) -> This is my number in a text

    In the examples I found only replacements of leading and trailing characters.

    #696

    Peter Jungblut
    Moderator

    You have to put the search string into brackets. In your example:

    set newString = oldString.replace(“(nr)”,”number”);

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.