Ugh! In order to create my latest recipe, I need to load a webpage and search for the download URL which is a long ugly URL containing amongst other things a time limited id string to authenticate the download request.
I have managed to create a regex string which matches but URLDownloader is failing.
This appears to be because the URL contains multiple copies of & which is the official escaped version of an ampersand.
Here is the snippet of the actual html code that contains the URL - note by the time you read this the values will have expired.
My regex is -
<key>re_pattern</key>
<string>(\/\/cdn\.document360\.io\/\S{8}-\S{4}-\S{4}-\S{4}-\S{12}\/Images\/Documentation\/Jamf%20Compliance%20Editor%20v\d+.\d+.\d+.tar.gz\?sv=\d{4}-\d{2}-\d{2}.*spr=https%2Chttp.*st=\d{4}-\d{2}-\d{2}.*se=\d{4}-\d{2}-\d{2}.*srt=.*sp=r)</string>
This when used with the following in URLDownloader produces the following URL
<key>Processor</key>
<string>URLDownloader</string>
<key>Arguments</key>
<dict>
<key>url</key>
<string>https:%match%</string>
</dict>
URL =
As you will see the original & has been changed to &amp; and hence the URL is rendered incorrect and produces a 404 error.
Help much appreciated!