Trying to escape special characters for json using following code
Dim testString As String = "this ""word"" is escaped"
Dim retruString = System.Text.RegularExpressions.Regex.Replace(testString, "\\([^""\\/bfnrtu])", "\\")
I know I have overlooked something really silly or maybe its been a long day/night, if anyone can point to my mistake would be greatly thankful
There is no error but the retruString
is not escaped.