Skip to content
Last updated

Extract text data

Node type browser_extractData

What it does

Extract a portion of text for use by a later step.

Desktop client configuration

Extract text data configuration in the desktop client

Captured in the English interface of MoreLogin Desktop V2.73.101.

Inputs

These fields belong in data.browserUi.inputs.

FieldType or valuesSchema requiredExecution defaultDescription and bounds
contentstringNo—Source data variable
regstringNo—Regular expression
notUpperboolean (supports variable references)NofalseIgnore case. Editor initial value false
onlyGetFirstboolean (supports variable references)NotrueExtract first item only. Editor initial value true

Mode requirements and limits

  • Required reg
  • The regex body does not include /…/ delimiters.
  • Validation code RPA_NODE_INPUT_INVALID
  • content can be empty. Non-string content (number, boolean, object, or array) is matched against its text or JSON text. reg is the regular expression body, without /…/ delimiters.
  • Validation code RPA_NODE_INPUT_INVALID

Input references

FieldAllowed forms
contentliteral, template
regliteral, template
notUpperliteral, template
onlyGetFirstliteral, template

Outputs

Mode onlyGetFirst eq true

Output fieldType or values
matchstring / null
matchCountnumber

Mode onlyGetFirst eq false

Output fieldType or values
matchesarray<string>
matchCountnumber

Reference published fields as ${nodeId.data.field}.

JSON example

A complete node object for a workflow's nodes array or another node's blocks. It reads read_title.data.text, the output of an earlier Read element data node.

{
  "id": "order_number",
  "type": "browser_extractData",
  "data": {
    "title": "Extract the order number",
    "browserAction": "extractData",
    "browserUi": {
      "inputs": {
        "content": "${read_title.data.text}",
        "reg": "#(\\d+)",
        "notUpper": false,
        "onlyGetFirst": true
      },
      "exception": {
        "timeout": 30000,
        "policy": "interrupt"
      }
    }
  }
}

Back to the node catalog