VB.NET
VB.NET
StringBuilder ReplaceWord
Demonstrates the ReplaceWord method.Chilkat VB.NET Downloads
Dim sb As New Chilkat.StringBuilder
sb.Append("forest, lumber, lumberjack, jack, timberland")
' The ReplaceWord method replaces word occurances.
' For example:
Dim numReplacements As Integer = sb.ReplaceWord("lumber","timber")
numReplacements = sb.ReplaceWord("jack","joe")
' The string content is now:
' forest, timber, lumberjack, joe, timberland
Debug.WriteLine(sb.GetAsString())