Ben Hutchings <b...@decadent.org.uk> writes: > On Sat, 2010-08-21 at 12:07 -0500, Chris wrote: > > Simply having http://www.foo.com/ihave/files/here/foo-(.*)\.tar\.gz > > in the debian/watch files downloads an html file. > > Something like: > > opts=filenamemangle=s/\?format=raw$// \ > http://www.foo.com/ihave/files/here/foo-(.*)\.tar\.gz\?format=raw
General regex advice: Remember to keep the regex tight where feasible, so as not to unexpectedly match badly-formed strings. Use ‘(.+)’ to ensure the version string is not empty. -- \ “We should be less concerned about adding years to life, and | `\ more about adding life to years.” —Arthur C. Clarke, 2001 | _o__) | Ben Finney
pgp7aoxENsWXf.pgp
Description: PGP signature