fixed regex to match only download/pdf files. also fixed download script to match strings with zero in them