Re: invalid file name chars (RegEx)
"Nassar, Anthony" <[email protected]> Mon, 2 Jul 2007 15:41:20 -0400
| Newsgroups | gmane.comp.windows.devel.dotnet.cx |
|---|---|
| Message-ID | <[email protected]> |
If you really just need to generate a valid file name, you could use the UrlEncode() method somewhere one of the Internet-y namespaces. That's what I do.=20 -----Original Message----- From: Discussion relating to the specifics of the C# and Managed C++ languages [mailto:[email protected]] On Behalf Of Peter Osucha Sent: Tuesday, June 26, 2007 8:49 PM To: [email protected] Subject: Re: [DOTNET-CX] invalid file name chars (RegEx) Efran, Thanks - that was the solution I was looking for. I often forget about the '@' character - still holding over from my VB6 days. Steve and Alan, it is both a learning exercise and a need. :-) I played with some simpler regexes to get to the point I was at - those escape chars always seem to get me. Thank you both for the comments as well. Peter =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D This list is hosted by DevelopMentor=AE http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com