VBScript has a Regular Expression object that can be used find various text based on pattern matching.
If you need to see a working usage example checkout some code I have posted on my site @ <a href=”http://www.code-bytes.com/Automate_WSH_VBScript_To_Delete_Or_Archive_Files.htm”> http://www.code-bytes.com/Automate_WSH_VBScript_To_Delete_Or_Archive_Files.htm</a>
Note the code uses regular expressions for matching file names…. but it will work the same if you pass in the text in the file.
I also have some references to Microsoft Regular Expression Syntax and Tool posted in my forum @ <a href=”http://www.code-bytes.com/Forum/index.php/board,4.0.html”>http://www.code-bytes.com/Forum/index.php/board,4.0.html</a>