KB Article #168128

EL: Match multiple strings in a Download Pattern

Problem

How to match multiple strings or file extensions in a Download Pattern of a Transfer Site?


Resolution

The below steps will work for Transfer Sites, which support Regular Expression syntax for the Download Pattern field. The steps will not work for Sites, which do not support RegEx (i.e. an FTP-based Transfer Site).


Create or edit a Transfer Site.


Select "Regular Expression" for the Download Pattern Type.


In the Download Pattern field put the below expression:


(.*)(string1|string2|string3)(.*).(extension1|extension2|extension3)


The above expression, deconstructed:


  • (.*) matches anything
  • (string1|string2|string3) - your multiple match strings
  • (.*) matches anything
  • (extension1|extension2|extension3) - multiple file extensions, if required