Search code examples
vb.netstr-replacestring-function

convert double quote string to string array in vb.net


How can I convert below string,

"[""1"",""2"",""3""]"

To this,

["1","2","3"]

I have try this without success:

Replace(string, """", "")

Solution

  • In vb.net - you should try like this,

     Dim stringVar As String = "[""1"",""2"",""3""]"
     stringVar.Replace("""", "")
    

    Also check this to use Replace function.