How to get the numbers in the text?

Use this code: Split and/or Trim - #2 by newuserkantu

I modified it for your string “----”:

{
  "Name": "split",
  "CreationDate": "2021-1-15",
  "Commands": [
    {
      "Command": "store",
      "Target": "Electronics (com/post/125586)----2012-12-11",
      "Value": "s"
    },
    {
      "Command": "executeScript_Sandbox",
      "Target": "return ${s}.split(\"----\")[0].trim();",
      "Value": "First_Part"
    },
    {
      "Command": "executeScript_Sandbox",
      "Target": "return ${s}.split(\"----\")[1].trim();",
      "Value": "Second_Part"
    },
    {
      "Command": "echo",
      "Target": "First part = ${First_Part}",
      "Value": "green"
    },
    {
      "Command": "echo",
      "Target": "Second part = ${Second_Part}",
      "Value": "blue"
    }
  ]
}