VB.NET - Remove a characters from a String

前端 未结 4 1765
小蘑菇
小蘑菇 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:06

    You can use the string.replace method

    string.replace("character to be removed", "character to be replaced with")

    Dim strName As String
    strName.Replace("[", "")
    

提交回复
热议问题