G
Gabriela
Hi,
I'd like to write a regexp that converts all special chars to "-".
I've used this pattern
[^a-z0-9]
with ignore case, and it works beautifully.
BUT - I want to support also unicode chars (and not escape them).
I could not find a way to do it, except for listing all special
characters "manually" and escaping them. I'd rather prepare
"whitelist" - of the chars allowed, then a "blacklist" of all special
chars.
Any ideas?
Thanx,
Gabi
I'd like to write a regexp that converts all special chars to "-".
I've used this pattern
[^a-z0-9]
with ignore case, and it works beautifully.
BUT - I want to support also unicode chars (and not escape them).
I could not find a way to do it, except for listing all special
characters "manually" and escaping them. I'd rather prepare
"whitelist" - of the chars allowed, then a "blacklist" of all special
chars.
Any ideas?
Thanx,
Gabi