Editing text in a richtextbox
I have created a program that opens a text file into a RichTextBox1. Now that I have this accomplished I would like to go through the list of text and clean it up. What I have is a list of stats for various people who play an online game. The problem is that there is also stats that are embedded for computer generated players. These are identified throughout the text as having [BOT] at the end of the screen name. Each line of text contains the screen name and their stats. How can I go through the text in the RichTextBox1 and search for [BOT] and remove this line of text?
Jeff Armstrong
Sr. Systems Mgr
SBC Services, Inc.
__________________
Jeff Armstrong
Sr. Systems Mgr
SBC Services, Inc.
|