I want the numbers, dots and dashes to be removed from all the elements of an array field using painless scripting and the output should be an array. Can I know how to do it?
Below is the input
"prod_names" : [
"evip-2017.07.30",
"client-2018.05.13",
"reporting2017.10.29"
"xyz"
],
Expected Output
"prod_names" : [
"evip",
"client",
"reporting"
"xyz"
],
Thanks,
Amol