That works to take those lines out, except how would I used regex to parse ScriptingSamples2.txt into multiple script files. Like in the text document I uploaded, each numbered section needs to be in it's own separate script file. 2. A script to fetch disk space on drive C: Option Explicit Const CONST_GB = 1073741824 Dim strComputer, objWMIService, objLogicalDisk, intFreeGB strComputer = "." Set objWMIService = GetObject("winmgmts://" & strComputer) Set objLogicalDisk = objWMIService.Get("Win32_LogicalDisk.DeviceID='C:'") intFreeGB = objLogicalDisk.FreeSpace / CONST_GB Wscript.Echo "There are " & Round(intFreeGB,2) & " gigabytes of free disk space." I would like that part in a script titles Script_2.vbs. So the script would not only parse the entire text document, but split each section into their own number corresponding vbs file as well. Put ScriptingSamples2.txt in the same folder as this parse.txt, switch the parse.txt to parse.vbs and run it and see what happens. I need a script that does that except using regex parse.txt