title: Need to remove white spaces and PS dir when running from ant using filterchain and replaceregex pattern
body: <p>Here is a sample log file that I am trying to parse through</p>
  
  <hr>
  
  <pre><code>Added Change Sets
  Component PS
      9476: Build changes to make for Ant task [Nov 12, 2015 12:02 PM]  
        Work Item 9476: Build changes to make for Ant task
        /PS/build/AntTaskHelper.xml
      9582: Testing for EBF and migration script changes [Nov 12, 2015 12:02 PM]  
        Work Item 9582: Testing for EBF and migration script changes
        /PS/database/ebf-migration/EBF-RTC-9582.sql
        /PS/database/sif-internal-migration-scripts/RTC-9582.sql
      9583: PKB PKG and Image File testing [Nov 12, 2015 12:02 PM]  
        Work Item 9583: PKB PKG and Image File testing
        /PS/database/src/program-units/RTC-9583-PKG_CDT.pkb
        /templates/Images/RTC-9583-ABAKER.TIF
        /templates/Templates/RTC-9583-A100_1_20090101.xdp
  </code></pre>
  
  <hr>
  
  <p>Ultimately I need the results to show the following: </p>
  
  <pre><code>    /database/ebf-migration/EBF-RTC-9582.sql
      /database/sif-internal-migration-scripts/RTC-9582.sql
      /database/src/program-units/RTC-9583-PKG_CDT.pkb
      /templates/Images/RTC-9583-ABAKER.TIF
      /templates/Templates/RTC-9583-A100_1_20090101.xdp
  </code></pre>
  
  <p>My regular expression works perfectly well when testing with a sample reg exp tester but not quite what I need when running in the build.</p>
  
  <p>Here's my target</p>
  
  <pre><code>&lt;target name="Parse"&gt;
      &lt;loadfile property="textFile" srcfile="${deployDir}\buildChanges1.txt"&gt;
      &lt;filterchain&gt;
             &lt;linecontainsregexp&gt;
                 &lt;regexp pattern="((/database/(ebf-migration|sif-internal-migration-scripts/|src/program-units/))|(/templates/)).*" /&gt;
              &lt;/linecontainsregexp&gt;
                  &lt;replaceregex pattern="((/database/(ebf-migration|sif-internal-migration-scripts/|src/program-units/))|(/templates/)).*" replace="\0"/&gt;
      &lt;/filterchain&gt;
      &lt;/loadfile&gt;
      &lt;echo message= "value based on regex =${textFile}"/&gt;
  &lt;/target&gt;  
  </code></pre>
  
  <p>Here's the output from the build.</p>
  
  <pre><code>Parse:
       [echo] value based on regex =      /PS/database/ebf-migration/EBF-RTC-9582.sql
       [echo]       /PS/database/sif-internal-migration-scripts/RTC-9582.sql
       [echo]       /PS/database/src/program-units/RTC-9583-PKG_CDT.pkb
       [echo]       /templates/Images/RTC-9583-ABAKER.TIF
       [echo]       /templates/Templates/RTC-9583-A100_1_20090101.xdp
  </code></pre>
  
  <p>Any help on getting this to run would be greatly appreciated.</p>