How can i remove special characters and spaces from a string

How can i remove all special characters and spaces from a string. So that are only letters in the string.

Many thanks!

Are you familiar with how to use pIpes? Especially the text utility pipe?

If you install the Text Utility Pipe and then add a rule that looks like this

The regex value to be put there is:

'[^A-Za-z0-9\-]'

That will strip all special characters when the form is saved:

2 Likes

Hello @moe

Thank you for the tip earlier.

I’ve implemented the suggested regex formula and made sure to include blank spaces, as I don’t want them removed. However, I’ve noticed that the pipe output is still replacing blank spaces with a plus sign (+).

I also tried inverting the logic—excluding special characters rather than allowing only specific ones—but encountered the same result, where blank spaces are still converted to +.

Additionally, I tested the Regex Pipe, but I wasn’t able to save the rule as it requires a replacement value, and I only want to replace with an actual blank (empty string).

Any further assistance you can provide would be much appreciated.
Thank you
Sahira