Skip to content

Extract Text

Function Description

TIP

This command is used to extract a segment of text

Configuration Item Description

General

Command Input

  • Text Contentstring: Enter a text string or select a variable containing the string

  • Starting PositionInteger: Specify the starting character position

  • Starting Character PositionInteger: If you want to extract '中国' from the text 'Hello中国欢迎你', the starting position would be 5

  • Starting Textstring: If you want to extract the order number from the text 'Purchase Order Number:1234567890', the starting position would be ':'

  • Include Starting Text in ResultBoolean: When checked, the result includes the starting text. For example, with 'Purchase Order Number:1234567890', if the starting text is set to ':', and it is checked, the result will be ':1234567890'. If not checked, the result will be '1234567890'

  • Extraction MethodInteger: If you want to extract '中国' from the text 'Hello中国欢迎你', the starting position is 5, the extraction length is 2, indicating that two characters should be extracted starting from the sixth character

  • Extraction LengthInteger: Enter the number of characters you want to extract

Command Output

  • Save Result Tostring: Specify a variable to save the extracted text content

Error Handling

  • Print Error LogsBoolean: Whether to print error logs to the "Logs" panel when the command fails. Default is checked.

  • Handling MethodInteger:

    • Terminate Process: If the command fails, terminate the process.

    • Ignore Exception and Continue Execution: If the command fails, ignore the exception and continue the process.

    • Retry This Command: If the command fails, retry the command a specified number of times with a specified interval between retries.

Usage Example

Process logic description:

Common Errors and Handling

None

Frequently Asked Questions

None