title: Extract all lines of a file between 2 delimiters without them in VBScript Regex
body: <p>I try to Extract all lines of a file between 2 strings in another file and without these delimiters.
  Example:</p>
  
  <pre><code>[General]
  Description=Description 
  
  [extractSection]
  First Line extracted. It is not an ini section 
  
  Last Line extracted 
  
  [OthersSection]
  blablabla
  </code></pre>
  
  <p>It seems to work with this script. One of my first vbs.</p>
  
  <pre><code>Set objFS = CreateObject("Scripting.FileSystemObject")
  strFile = "E:\Temp\Test.txt"
  strTemp = "E:\Temp\Temp.txt"
  If objFS.FileExists(strTemp) Then objFS.DeleteFile(strTemp)
  Set objFile = objFS.OpenTextFile(strFile)
  Do Until objFile.AtEndOfStream
    strLine = objFile.ReadLine
    If isReading = True Then
      If instr(strline,"[") Then
        Set objOutFile = objFS.CreateTextFile(strTemp, True)
        objOutFile.Write(strLine1)
        objOutFile.Close
        Exit Do
      Else
        strline1 = strline1 &amp; strline &amp; vbNewLine
      End If
    Else
      If instr(LCase(strline),"[extractsection]") Then
        isReading = True
      End If 
    End If
  Loop
  objFile.Close
  </code></pre>
  
  <p>But it seems not very optimized, I have files up to 8Mb.<br>
  I would like to try the same thing using Regex. I never used, I have to learn.<br>
  I have this as beginning: <code>\[extractsection\]([\s\S]*?)\[[\s\S]</code><br>
  But I would like without the delimiters.</p>