Data processing includes four operations: Extract from txt, Convert to JSON, Extract Field, and Random Extraction.
Extract from txt
Parameters | Description |
Data | Retrieve the previously saved text content |
Extraction rules | You can use regular expressions to extract the target content from the text. For example, if the text content is: this is new case: 897602, and we want to extract a 6-digit number, then we can retrieve 897602 and store it in a new variable. |
Save to | Save the extracted content into a new variable |
Convert to JSON
Parameters | Description |
Converted variable | Retrieve the previously saved text content |
Save to | Save the converted JSON into a new variable. |
Extract Field
Data 1: {"title": "hello world", "name": "jack"}
Data 2: ['hello word', 'jack']
Parameters | Description |
Data | Only variables of array and object types are supported. Text types need to be converted to JSON first; variables that do not meet these criteria will not appear in the dropdown list. |
Save the extracted value into a new variable. For example, with the data above, if we want to obtain the "hello word" data, for Data 1, by extracting the key which is "title", then "hello word" will be saved into the variable result . If it is an array, such as Data 2, you can specify the array index, which is 0, and then "hello word" will be saved into the variable result . |
Random Extraction
Description: Similar to the functionality of field extraction, but without specifying a key; instead, extraction is done randomly.