How can i strip off all special characters using groovy script?
Hi VijayaKumar Mallarapu,
If you are using groovy, you can use any Java library as long you import them.For your specific case, if you just want to remove chars from a string you can use the following instruction:
String result = yourString.replaceAll("[-+.^:,]","");
java - How to remove special characters from a string? - Stack Overflow
Note: you have to define your regular expression (1st argument of the method)
Hope this helps!
**If the post solves your problem, mark it as "Correct Answer".**You can say "Thank you" by clicking the "star" in the post that helped you.
Thanks Daniel for your suggestion.
Retrieving data ...