I'm trying to change particular characters such as [ ', ", \ ] because I have a problem during INSERT. For example, the string I'm saying "Hi" will be I\'m saying \"Hi\". So basically this method is adding backslash in front of the characters. But I'm not sure how to do this with regex.
I was thinking to do this with IndexOf but the index of the string is changed when I add the backslash to the string.
Any idea how to do this?