Complete-Reference-Vb Net 31
Complete-Reference-Vb Net 31
sBuilder.Remove(5, 7)
Console.WriteLine(sBuilder)
Replace
Use the Replace method to replace characters within the StringBuilder object with other specified characters.
This example uses the Replace method to search a StringBuilder object for all instances of the exclamation
point character (!) and replace them with the question mark character (?):
See anything you like in the preceding methods? In the following code for an Index Server application, I used
a StringBuilder object inside a While loop (this was later implemented with a regular expression). I extracted
the date information as previously described and then flushed the builder for the next iteration of the loop.
Once the entire table is built, the structure is dispatched, lock, stock, and barrel, to an awaiting Web client.
Regular Expressions
The .NET Framework equips you with probably the most sophisticated and advanced regular expression
engine in existence today. If you don't know what regular expressions are, then consider the definition
provided by this book:
515