How remove special characters and numbers from string

My questions is i have dataset having multiple categories names like
1000 Bakeware (79)
1000 Bakeware
0900 GM/HBC (325)
i wanted to replace it as
Bakeware
Bakeware
GM/HBC

from above values.

How can we do in quicksight?

We perform this in Java: category.replaceAll(“^\d+|\d+$|\([0-9]+\)$”, “”)
Tried do somthing simlar in QS not able to do? Any help?

Hi @Subbu

I don’t think there is a regex or a replaceall kind of function available in QuickSight currently.

You may need to use a series of replace functions on your field to get what you need. See this thread for an example

1 Like

But i have more than 200 values in the category field. Which end up writing 200 replace statements. Is there any other way?

Hi @Subbu,
It’s been awhile since last communication on this thread, checking in to see if you had any remaining questions or if you were able to find a work around for your case?

If we do not hear back within the next 3 business days, I’ll go ahead and close out this topic.

Thank you!

Hi @Subbu,
Since we haven’t heard back, I’ll go ahead and close out this topic. However, if you have any additional questions, feel free to create a new topic in the community and link this discussion for relevant information that may be needed.

Thank you!