Re: What's wrong with this regular expression?

From: Niki Estner (niki.estner_at_cube.net)
Date: 09/10/04


Date: Fri, 10 Sep 2004 21:40:00 +0200


"Crystal" <Crystal@discussions.microsoft.com> wrote in
news:AE3256C7-DC67-4C51-AE1B-901735F8D4F8@microsoft.com...
> Hi there,
>
> My text file is a financial report. There are thousands $ in it. "$&"
> happens coincidently. If I change the replacement string, I have to change
> it
> back.

Maybe I was unclear about that: Regex.Replace will *always* replace "$$" to
"$". It's similar to "\\" in a string literal.

Niki