Help please i want to extract specific text within a variable

I am new to ui vision and I have this text in a variable
“Download\tRefresh\n\n\n5 Centimeters per Second 720p BD Dual Audio [dedsec]\n\n\n\n\n5 Centimeters per Second 1080p BD Dual Audio [dedsec]\n\n\nBatch\n\n\n5 Centimeters per Second 720p BD Dual Audio [dedsec].zip\n\n\n\n\n5 Centimeters per Second 1080p BD Dual Audio [dedsec].zip”

I only want this texts from that variable “Centimeters per Second 720p BD Dual Audio [dedsec].zip”
and
“Centimeters per Second 1080p BD Dual Audio [dedsec].zip”
How can i do this?

Use split or replace inside execute script

Here solution

{
  "Name": "Split",
  "CreationDate": "2020-12-3",
  "Commands": [
    {
      "Command": "store",
      "Target": "Download\\tRefresh\\n\\n\\n5 Centimeters per Second 720p BD Dual Audio [dedsec]\\n\\n\\n\\n\\n5 Centimeters per Second 1080p BD Dual Audio [dedsec]\\n\\n\\nBatch\\n\\n\\n5 Centimeters per Second 720p BD Dual Audio [dedsec].zip\\n\\n\\n\\n\\n5 Centimeters per Second 1080p BD Dual Audio [dedsec].zip",
      "Value": "Text"
    },
    {
      "Command": "executeScript_Sandbox",
      "Target": "return ${Text}.split(\"[dedsec].zip\\n\\n\\n\\n\\n5 \")[1];",
      "Value": "Text"
    },
    {
      "Command": "echo",
      "Target": "${Text}",
      "Value": " #shownotification"
    }
  ]
}

Result:
Centimeters per Second 1080p BD Dual Audio [dedsec].zip

1 Like