S
shabbs
I'm having a heck of a time trying to get this to work:
Regex.Replace(input, "(?<esc>['""\])", "\${esc}")
What I'd like is to take any ' (single-quote), " (double-quote) and \
(backslash) and prepend it with a backslash.
It works great for the single-quote and the backslash, but the double-
quote just seems to get dropped from the string altogether. I've also
tried replacing the "" with + Chr(34) + to no avail. What am I missing?
Regex.Replace(input, "(?<esc>['""\])", "\${esc}")
What I'd like is to take any ' (single-quote), " (double-quote) and \
(backslash) and prepend it with a backslash.
It works great for the single-quote and the backslash, but the double-
quote just seems to get dropped from the string altogether. I've also
tried replacing the "" with + Chr(34) + to no avail. What am I missing?