Help with shell command to get a result in a node

Or in JSONata in a change node after the command output, set as Payload to JSONata expression.
$number($match(payload, /(\d+)/)[0]['groups'][0])
(Typing from phone, pretty sure it’s typo free but untested)

What this does is execute the regex on the payload string to get the number out but still as a string, then parse it to a number and return it.

1 Like