On 3/21/06, josh robb <[EMAIL PROTECTED]> wrote:
> Uh - at the risk of mentioning something that everyone already knows:
>
> >  RegexEncode(Path.GetFileNameWithoutExtension(baseFileName))
>
> Regex.Escape(string str)
>
> Could be what you are looking for.
>

Absolutely true but not needed as the special chars bothering Ron were
in the input string (where any character can occur) and not in the
pattern (where you need to escape special characters).

In any event, I removed the regular expression code as it really did
feel like overkill.

--
Mike Blake-Knox

Reply via email to