Usage of replaceAll function

Hi Team, I have one requirement that, I need to remove certain characters from my String. Hence I am using replaceAll function call. I want to remove ‘(‘,’)’ and ‘-’ that appears in my String. I could achieve it as below. replaceAll(replaceAll(replaceAll($Contact,'\)',''),'\(',''),'-','') and is working. But I dont want to use replaceAll multiple times, so is there any solution to achieve this.    Regards Ajay
1 answers

replaceAll takes a regular expression in the second parameter, so you can do this in one call.

replaceAll($Contact, '[\(\)\-]', '')

Hope this helps.