VB.NET - Remove a characters from a String

前端 未结 4 1763
小蘑菇
小蘑菇 2021-02-18 15:34

I have this string:

Dim stringToCleanUp As String = \"bon;jour\"
Dim characterToRemove As String = \";\"

I want a function who removes the \';\

4条回答
  •  攒了一身酷
    2021-02-18 16:23

    The String class has a Replace method that will do that.

    Dim clean as String
    clean = myString.Replace(",", "")
    

提交回复
热议问题