<div> "\.(flv|mp4|jpg|xml|png|gif)(\?[a-z0-9]+)?"</div><div><br></div><br><div class="gmail_quote">On Sat, Jun 23, 2012 at 11:59 PM, Abraham Cruz Sustaita <span dir="ltr"><<a href="mailto:abraham.sustaita@buscacorp.com" target="_blank">abraham.sustaita@buscacorp.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="gmail_quote">I have in my system this two kind of url's for files:<div><br></div><div><a href="http://site.com/img.jpg" target="_blank">http://site.com/img.jpg</a></div>
<div><a href="http://site.com/img.jpg?123" target="_blank">http://site.com/img.jpg?123</a></div>


<div><br></div><div>I have this regular expression:</div><div><br></div><div><div>  if (req.http.Host == "<a href="http://s3.files.fileserver.com" target="_blank">s3.files.fileserver.com</a>" && req.url ~ "\.(flv|mp4|jpg|xml|png|gif)(\?[a-z0-9]+)$") {</div>



<div>  }</div><div><br></div><div>but it only match the second one. How should I change it so it can match both urls?</div><div><br></div><div>Thanks in advance.</div>
</div>
</div><br>
<br>_______________________________________________<br>
varnish-misc mailing list<br>
<a href="mailto:varnish-misc@varnish-cache.org">varnish-misc@varnish-cache.org</a><br>
<a href="https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc" target="_blank">https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc</a><br></blockquote></div><br>