I want to use the regex.replace for a string containing "%s"
I can't seem to get the "%s" escaped. I tried a normal "\%s" but that
doesn't seem to do it. Picks up any "s".
---------------------------------------------------------------------
Dim options As RegexOptions = RegexOptions.None
Dim oRegex As Regex = New Regex("[\%s]", options)
dim s as string
s = oRegex.Replace("hellos to you and %s", "others", 1) '---- note the 1
do replace only one time
I'd like s to be "hellos to you and others" but I get
"helloothers and %s"
Ideas?