user2169140
user2169140

Reputation: 35

How can i replace " in vb.net

How can i replace this string:

<say"Hello">

with another strings in VB.net? this program is not working!!

Text1.Text = Text1.Text.Replace("<say"Hello">", " ")

Upvotes: 0

Views: 77

Answers (1)

Martin
Martin

Reputation: 16433

To get a literal quote in a string, use a double quote ("") as so:

Text1.Text = Text1.Text.Replace("<say""Hello"">", " ")

The string will then be interpreted as this:

<say"Hello">

Upvotes: 2

Related Questions