Quote Originally Posted by vijy View Post
hi,
i need to replace the whole word from a string.

for example.
String= "Hi VBFriends, I am learning VB 2010."

i need to replace only VB as C#.
Couldn't you do it like this?...

Code:
Dim sHTMLStream As String = "Hi VBFriends, I am learning VB 2010."
sHTMLStream = Regex.Replace(sHTMLStream, " vb ", " C# ", RegexOptions.IgnoreCase)
MessageBox.Show(sHTMLStream)