![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | RegExp pattern to escape ALL special characters (but exclude unicodechars) 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 |
My System Specs![]() |
| | #2 (permalink) |
| | Re: RegExp pattern to escape ALL special characters (but exclude unicode chars) Gabriela wrote on 22 dec 2008 in microsoft.public.scripting.vbscript: Quote: > I'd like to write a regexp that converts all special chars to "-". > I've used this pattern > [^a-z0-9] Quote: > with ignore case, and it works beautifully. > BUT - I want to support also unicode chars (and not escape them). Quote: > 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. [^a-z\d\u0100-\uffff] -- Evertjan. The Netherlands. (Please change the x'es to dots in my emailaddress) |
My System Specs![]() |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| Using special characters on my tagline | Live Messenger | |||
| Replace special characters | VB Script | |||
| Password with special characters | Live Mail | |||
| Special Characters - how? | Vista General | |||
| How to run program with special characters | PowerShell | |||