Reputation: 35
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
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