Posted by Jim Michaels on 02/17/06 03:13
"Super Mango" <liebermann@gmail.com> wrote in message
news:1137567117.302565.44500@g14g2000cwa.googlegroups.com...
> 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).
you have a problem. I don't see how a regex is going to work with UNICODE
or UTF-8 data. it can only handle chars up to 255 (\xff).
>
> Any idea?
>
> Thanks in advance!
>
[Back to original message]
|