Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello,
I'm trying to delete "(" and ")" in a string (in one treatment).
Input example :
(Cat)
(Dog)
row1.COM_ARTMIN.replaceAll("(|)","")But that's don't work.
Output I expect :
Cat
Dog
What is the correct syntax to had this done ?
Thanks
Ok found it after some tries ^^
I need to escape "(" and ")" which are specials chars here (with \\)
row1.COM_ARTMIN.replaceAll("\\(|\\)","")
Ok found it after some tries ^^
I need to escape "(" and ")" which are specials chars here (with \\)
row1.COM_ARTMIN.replaceAll("\\(|\\)","")