Replace string

更新时间:
复制 MD 格式

1. Component overview

Note

Prerequisites: None

You can use this component to replace specified content within a string.

2. Inputs

Note

For more information about each input, see the help text in the component panel of the application flow editor.

3. Outputs

Note

For more information about each output, see the help text in the component panel of the application flow editor.

4. Component example

4.1. Configuration example

  1. In the Target String field, enter "test123and123".

  2. In the Replacement Method field, select one of the following options:

    1. String Match

      1. In the String to Replace field, enter "123".

    2. Regular Expression

      1. In the String to Replace field, enter "\d+" to match one or more digits.

  3. For Ignore Case, the default value is Yes.

  4. For Replace All Matches, the default value is Yes.

  5. In the Replace With field, enter "456".

  6. Keep the default values for the advanced options.

image

4.2. Example result

After the flow is successfully executed, click the Log panel to view the result, as shown in the following figure.