title: Ant Regex Replace pattern with contents of file
body: <p>I'm trying to figure out how to replace matching text in my files with contents of file.
  Actually I want to inline javascript sources into HTML. But <code>loadfile</code> doesn't work in <code>replaceregexp</code>.</p>
  
  <pre><code>&lt;replaceregexp flags="gs"&gt;
      &lt;regexp pattern="\&amp;lt;!--js--\&amp;gt;(.*?)\&amp;lt;!--/js--\&amp;gt;"/&gt;
      &lt;substitution expression='\&amp;lt;script src="min.js"\&amp;gt;\&amp;lt;/script\&amp;gt;'/&gt;
      &lt;loadfile property="min.js" srcFile="compiled/min.js"/&gt;
  &lt;/replaceregexp&gt;
  </code></pre>