Forum Discussion

JensDeveloper's avatar
JensDeveloper
Contributor II
4 years ago
Solved

Get certain values of strings in array

Hi all, I am trying to get the value between the ‘()’ of every record inside the array. [ { “betroffene IT Systeme”:[ “Ardoq·(431)” “SnapLogic·(580)” ] } ] So that I get an array: ...
  • nsingam's avatar
    4 years ago

    Hi,

    You can use the below expression.
    

    $[‘betroffene IT Systeme’].map(x => x.substring(x.indexOf(“(”)+1, x.indexOf(“)”)))