title: Matching multiple pattern in Ant replaceregexp task
body: <p>I have a task in my Ant build script for adding a parameter to the <code>src</code> attribute to all <code>&lt;script&gt;</code> tags in jsp files.</p>
  
  <pre><code>       &lt;replaceregexp flags="gi"&gt;               
              &lt;fileset dir="${build.web.dir}/WEB-INF/jsp" &gt;   
                  &lt;filename name="*.jsp"/&gt;
              &lt;/fileset&gt;                  
              &lt;regexp pattern=".js&amp;quot;&gt;"/&gt;
              &lt;substitution expression=".js?param=${pValue}&amp;quot;&gt;"/&gt;         
          &lt;/replaceregexp&gt;
  </code></pre>
  
  <p>I want to extend this to all <code>href</code> attributes of <code>&lt;link rel="stylesheet"&gt;</code> tags in all jsps. When I tried to add one more <code>&lt;regexp&gt;</code> as </p>
  
  <pre><code>&lt;regexp pattern=".css&amp;quot;&gt;"/&gt;
      &lt;substitution expression=".css?param=${pValue}&amp;quot;&gt;"/&gt;
  </code></pre>
  
  <p>in the same <code>&lt;replaceregexp&gt;</code>, I am getting error 
  <code>Only one regular expression is allowed.</code>
  How can I do this without using multiple <code>&lt;replaceregexp&gt;</code> blocks?</p>