Regex rewrite rule for filename with dash
<p>I got a filename like <code>jquery.form.min.3.51.0-2014.06.20.js</code> and want to change the following my rewrite rule to remove the dots, the dash and the digits.</p>

<pre><code>&lt;IfModule mod_rewrite.c&gt;
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.+)\.(\d+)\.(js|css|png|jpg|gif)$ $1.$3 [L]
&lt;/IfModule&gt;
</code></pre>

<p>The rewrite rule does it jobs on filenames like <code>scripts.min.4.4.2.js</code> which is forwarded to <code>scripts.min.js</code>. But for the filename at the top, with the dash inside between the digits, the rule won't work.</p>

<p>My regex knowledge is too limited for this case. Could anybody give me a hint please?</p>