Forum Discussion
Karan_Mhatre
7 years agoNew Contributor II
@Andrej_Bogdanovski Thank you very much.
However i have done these in another way ,may be it will help you ,so know we know 2 ways to do these
- $Name.replace(/[^a-zA-z]/g,“”).
- $Name.replaceAll(‘!’,‘’).replaceAll(‘@’,‘’).replaceAll(‘#’,‘’).replaceAll(‘$’,‘’).replaceAll(‘%’,‘’).replaceAll(‘^’,‘’).replaceAll(‘&’,‘’).replaceAll(‘*’,‘’)
Hope these help us.
Again thank you for your solution.
tstack
7 years agoFormer Employee
Note that this will replace numbers as well. If you want to keep the numbers, you can modify the expression to something like the following:
$Name.replace(/[^a-zA-Z0-9]/g, '')