and more in a single search tool across platforms. Read the announcement here. |
11/19/2023 11:53 PM
Hi Team,
I am trying to escape alphanumeric characters along with special characters like [, ], (, ), ,(comma), '(single quotes), ", \ and space while creating ticket in service-now.
I am using the below expression but it does not seem to work and is throwing an exception. Please can someone advise if anything is missing here
replaceAll('[^a-zA-Z0-9_\\-\\[\\]/(),\'"\\s]*', '')
Thank you
11/22/2023 10:49 AM
Hi @shivmano ,
Greetings.
Please take a look at below knowledge base article on handling special characters in REST jsons.
Thanks,
11/22/2023 10:14 PM
@pruthvi_t thank you for the response. This article tells about escaping the special characters. But, I would like to retain certain special characters as mentioned in my post and escape the rest. What would be the best way to do that?
11/23/2023 05:35 PM
You can use standard ReplaceAll Function