how to replace characters other than <0-9>, <a-z>,<A-Z> in a string with empty character

Hello experts

I need to remove special characters in a string thus only rendering numbers and lower- and uppercase letters.



should be changed to


what is the easiest way to do that?

Kind regards Mikael

try to use string replacement with regex:

use string replace with regexp

search [^A-Z0-9a-z]

replace empty

Yes, that did the trick. thanks.

You may try this solution:

  1. invoke pub.string:replace

  2. service in:
    searchString = \W
    useRegex = true