Posted by Super Mango on 09/28/17 11:37
Hi,
I want to change a given string in a way that:
1) all invisible chars (like ALT+0254) will be changed to spaces
2) all sequence of several whitespaces will be changed to a single
space.
3) leading and trailing spaces will be canceled (I know how to do that
with trim, so this is only nice-to-have)
I cant limit the string to a-zA-Z0-9 because that every visible char is
OK (it's a multi lingual site).
Any idea?
Thanks in advance!
[Back to original message]
|