escaping chars for the replaceText function
Posted: Mon Apr 30, 2018 5:27 pm
I want to strip all the characters "()/\=" from any string passed to the replaceText function, but if I pass the list of the offending characters escaping the regex reserved chars using "\", the string remains unchanged:
What I'm doing wrong?
Code: Select all
put replaceText("KAI\", "\\\/\(\)=", "")
KAI\