Input:
[
{
"name": "TOOL: 5237"
},
{
"name": "DMP: 213213 RENTAL"
},
{
"name": "SMG: 23434-A"
}
]
This is my Input , I want to only print the numbers/ID's in the name
my Expected output should be
[
"5237"
,
"213213"
,
"23434"
]
It would be helpful you someone gives me the logic to do it. Thank you
Simply done like below (with https://docs.mulesoft.com/dataweave/latest/dw-strings-functions-isnumeric function):