title: VB.NET finding text between two words in a string
body: <p>so I'm having trouble finding the code for a feature I'm adding in a program I'm developing in Visual Basic. Currently it sorts through text files, for example logs generated by certain programs, and displays all lines in that file containing a string it's given. I'd like to be able to add the function of being able to choose to cut out certain parts of the displayed line and only show the information I need, for example: only print the part of the line after string1, before string 2, or between the two strings. Any help is much appreciated.</p>