Re: invalid file name chars (RegEx)
Steve Johnson <[email protected]> Mon, 25 Jun 2007 13:35:02 -0600
| Newsgroups | gmane.comp.windows.devel.dotnet.cx |
|---|---|
| Message-ID | <[email protected]> |
>On 6/25/07, Peter Osucha <[email protected]> wrote: >Anyway, I have a string of characters and all I'm trying to do is make >replace all the invalid file name chars with "" to I can use the >replaced name as a filename. I am trying to do this with a simple >regular expression statement but this doesn't seem to be working. You can use System.IO.Path.GetInvalidFileNameChars ...or is this just a Regex learning exercise for you? To do this with a regex, you need to provide a MatchEvaluator. -- Steve Johnson =================================== This list is hosted by DevelopMentorĀ® http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com