Hi All I have requirement to get the values between square brackets iam achieving it with the help of extract function but when i was trying to insert the brackets after entering value and if my text value has uneven number of brackets it is erroring out
can you suggest is their any other alternate way to achieve this
Discussion posts and replies are publicly visible
Hi tejashwinin0822,
Can you please check if the below code works for your use case?
a!localVariables( local!values: split(ri!myString, "["), local!valuesWithCloseBracket: reject( a!isNullOrEmpty, a!forEach( items: local!values, expression: if(search("]", fv!item) > 1, fv!item, null) ) ), a!forEach( items: local!valuesWithCloseBracket, expression: split(fv!item, "]")[1] ) )