Use a regular expression to determine the destination path of a downloaded file.