Split/trim help

I have this code snippet:

  "Command": "store",
  "Target": "${!COL1}",
  "Value": "!csvLine",

The value of !COL1 is in the format SKU #111-0627
I want to extract the numbers after the #
I have looked in the DOCs for info on the syntax for split and trim and have found nothing.

Thanks

{
  "Name": "TEST",
  "CreationDate": "2022-3-8",
  "Commands": [
    {
      "Command": "store",
      "Target": "#111-0627",
      "Value": "TEST",
      "Description": ""
    },
    {
      "Command": "echo",
      "Target": "${TEST}",
      "Value": "red",
      "Description": ""
    },
    {
      "Command": "executeScript_Sandbox",
      "Target": "return ${TEST}.replace('#', '');",
      "Value": "TEST",
      "Description": ""
    },
    {
      "Command": "echo",
      "Target": "${TEST}",
      "Value": "green",
      "Description": ""
    }
  ]
}

1 Like

Perfect, just what I needed.
Thanks