Regular Expression to check File type
<p>I am not an expert of Regexp literally but I got a regex which is for file matching in the source of one site, but it's not matching any file.
The expression is:</p>

<pre><code>"^(([a-zA-Z]:)|(\\\\{2}\\w+)\\$?)(\\\\(\\w[\\w].*))+(.jpg|.JPG|.jpeg|.JPEG)$";
</code></pre>

<p>Is there any expression which matches or qualifies the test of above regexp.</p>

<p>Please Help.
Thank You</p>