Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Connect 2026 Agenda Now Available: Explore Sessions
cancel
Showing results for 
Search instead for 
Did you mean: 
Mayot
Contributor III
Contributor III

replace.All with multiple replacement

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

Labels (2)
1 Solution

Accepted Solutions
Mayot
Contributor III
Contributor III
Author

Ok found it after some tries ^^

I need to escape "(" and ")" which are specials chars here (with \\)

row1.COM_ARTMIN.replaceAll("\\(|\\)","")

View solution in original post

1 Reply
Mayot
Contributor III
Contributor III
Author

Ok found it after some tries ^^

I need to escape "(" and ")" which are specials chars here (with \\)

row1.COM_ARTMIN.replaceAll("\\(|\\)","")