VBScript - Find text in a txt file using regular expressions and write to another output file
Posted on 2006-05-01
I am looking for a way in a VBScript to find text based on a regular expression search pattern and write that output to another file (taking into account that the search pattern may need to return more than one result). I have found a lot of resources on replacing text strings in a txt file which is fairly simple but little on selecting text in a file based on a regular expression, capturing it as a string, and writting this string to another output file. Any links or code examples would be appreciated. I am executing this from a batch file with the cscript command line utility.