You need to escape the brackets in the replaceAll function, because it will interpret the needle as a regular expression. So you can do:
replaceAll($yourString, '[\[\]]', '')
Hi Abhishek,
you can use replaceAll() function:
' $currentObject/modifiedString = replaceAll('[', '', replaceAll(']', '', $currentObject/yourStringAttribute)) '
Let me know if you face any issues,
Hope it helps!!