title: Maven replacer plugin, regex no working
body: <p>I'm working on a project with Maven and using the maven-replacer-plugin to replace all my css/javascript files for the minified version.</p>
  
  <p>I want to replace this :</p>
  
  <pre><code>&lt;!-- JSMIN js/script.min.js --&gt;
      &lt;script src="http://code.jquery.com/jquery-1.7.2.min.js"&gt;&lt;/script&gt;
      &lt;script src="js/jquery.placeholder.min.js"&gt;&lt;/script&gt;
      &lt;script src="js/smoothscroll.js" async=""&gt;&lt;/script&gt;
      &lt;script src="js/javascript.js"&gt;&lt;/script&gt;
      &lt;script src="js/swfobject.js"&gt;&lt;/script&gt;
      &lt;script src="js/player.js"&gt;&lt;/script&gt;
  &lt;!-- END JSMIN --&gt;
  </code></pre>
  
  <p>with this:</p>
  
  <pre><code>&lt;script src="js/script.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>Similar for the css's.</p>
  
  <p>The plugin says that it has applied the regex to my 4 html files which is correct but i see no changes on those files.</p>
  
  <p>Here is the configuration for the plugin</p>
  
  <pre><code>&lt;plugin&gt;
      &lt;groupId&gt;com.google.code.maven-replacer-plugin&lt;/groupId&gt;
      &lt;artifactId&gt;maven-replacer-plugin&lt;/artifactId&gt;
      &lt;executions&gt;
          &lt;execution&gt;
              &lt;phase&gt;prepare-package&lt;/phase&gt;
              &lt;goals&gt;
                  &lt;goal&gt;replace&lt;/goal&gt;
              &lt;/goals&gt;
          &lt;/execution&gt;
      &lt;/executions&gt;
      &lt;configuration&gt;
          &lt;basedir&gt;${project.basedir}/src/main/webapp/&lt;/basedir&gt;
          &lt;outputDir&gt;test&lt;/outputDir&gt;
          &lt;includes&gt;
              &lt;include&gt;**/*.html&lt;/include&gt;
          &lt;/includes&gt;
          &lt;regexFlags&gt;
              &lt;regexFlag&gt;CASE_INSENSITIVE&lt;/regexFlag&gt;
              &lt;regexFlag&gt;MULTILINE&lt;/regexFlag&gt;
              &lt;regexFlag&gt;DOTALL&lt;/regexFlag&gt;
          &lt;/regexFlags&gt;
          &lt;replacements&gt;
              &lt;replacement&gt;
                  &lt;token&gt;&amp;lt;!-- JSMIN (.*) --&amp;gt;(.*?(\r))+.*?&amp;lt;!-- END JSMIN --&amp;gt;&lt;/token&gt;
                  &lt;value&gt;&amp;lt;script src="$1"&amp;gt;&amp;lt;/script&amp;gt;&lt;/value&gt;
              &lt;/replacement&gt;
              &lt;replacement&gt;
                  &lt;token&gt;&amp;lt;!-- CSSMIN (.*) --&amp;gt;(.*?(\r))+.*?&amp;lt;!-- END CSSMIN --&amp;gt;&lt;/token&gt;
                  &lt;value&gt;&amp;lt;link href="$1" rel="stylesheet" type="text/css"/&amp;gt;&lt;/value&gt;
              &lt;/replacement&gt;
          &lt;/replacements&gt;
      &lt;/configuration&gt;
  &lt;/plugin&gt;
  </code></pre>
  
  <p>The regex seems correct to me and my co-workers...any help?
  Thanks in advance</p>