Store partial text of a line

  • use storeText to get the complete string (just like you did!)

  • use storeEval with split to get the substring after the “:”

Test: Output is [echo] t= DS4582

{
  "Command": "store",
  "Target": "“Estimate Code: DS4582",
  "Value": "t"
},
{
  "Command": "storeEval",
  "Target": "s1 = \"${t}\"; r = s1.split (\":\"); var s2 = r[1]; s2",
  "Value": "t"
},
{
  "Command": "echo",
  "Target": "t=${t}",
  "Value": ""
}
2 Likes