Removing Special characters

Hi All,

I am trying to find a solution to remove all special characters possible and numbers from a string.

For example: If a password has: abCdre@$!*123, then I need to remove all special characters and numbers. How can I accomplish it using regular expressions.

Any inputs are much appreciated.


You can use pub.string:replace with searchString as [^a-z_A-Z], useRegex to true ; no need to give any value for replaceString.[/color].


Thanks Ambrish, I googled it and tried and many suggested the samething. Thanks for the response.

You are Welcome, Kumar! :slight_smile: