FranciscoR Posted January 27, 2009 Report Share Posted January 27, 2009 (edited) <?xml version="1.0" encoding="utf-16"?> <Jobs> <ApplicationJob xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <DownloadBeta>Default</DownloadBeta> <DownloadDate xsi:nil="true" /> <VariableChangeIndicator /> <CanBeShared>false</CanBeShared> <ShareApplication>false</ShareApplication> <HttpReferer /> <Variables> <item> <key> <string>app</string> </key> <value> <UrlVariable> <VariableType>RegularExpression</VariableType> <Regex>(\w+?\p{P}zip|\w+?\d\w+?\p{P}zip)</Regex> <Url><placeholder name="Application Page URL" /></Url> <Name>app</Name> </UrlVariable> </value> </item> <item> <key> <string>version</string> </key> <value> <UrlVariable> <VariableType>RegularExpression</VariableType> <Regex>(?:\</div>)\s+?(?:\</div>){1,}(?:\</td>).*(?:v)(\d{1,}\p{P}\d{1,3})</Regex> <Url><placeholder name="Application Page URL" /></Url> <Name>version</Name> </UrlVariable> </value> </item> </Variables> <ExecuteCommand /> <Category>Sysinternals</Category> <SourceType>FixedUrl</SourceType> <DeletePreviousFile>true</DeletePreviousFile> <Enabled>true</Enabled> <FileHippoId /> <LastUpdated xsi:nil="true" /> <TargetPath>{target}\{category}\{appname}_{version}.{url:ext}</TargetPath> <FixedDownloadUrl>http://download.sysinternals.com/Files/{app}</FixedDownloadUrl> <Name><placeholder name="Application Name" /></Name> </ApplicationJob> </Jobs> Insert App Page URL and App name. App Page URL example: http://technet.microsoft.com/en-us/sysinternals/bb896653.aspx Note: Regex was tested against several urls in this site retrieving NO error (24-01-2009). Edited February 23, 2009 by FranciscoR Link to comment Share on other sites More sharing options...
CybTekSol Posted January 27, 2009 Report Share Posted January 27, 2009 @FranciscoR, THANKS for you effort... I will try to test it in the next few days! Link to comment Share on other sites More sharing options...
FranciscoR Posted January 27, 2009 Author Report Share Posted January 27, 2009 This is no big deal and there's certainly no comparison with your own templates... for me this is usefull because like this I only have to import one single template with customized tags (including commands), insert url and name, push update and everything else is done in a breeze. Link to comment Share on other sites More sharing options...
FranciscoR Posted February 24, 2009 Author Report Share Posted February 24, 2009 !Fixed minor regex issues with the new Sysinternals website design. Link to comment Share on other sites More sharing options...
CybTekSol Posted February 25, 2009 Report Share Posted February 25, 2009 !Fixed minor regex issues with the new Sysinternals website design. Thanks FranciscoR... it's a never ending process with templates. Link to comment Share on other sites More sharing options...
FranciscoR Posted February 25, 2009 Author Report Share Posted February 25, 2009 !Fixed minor regex issues with the new Sysinternals website design. Thanks FranciscoR... it's a never ending process with templates. Oh, and that description is fairly simplistic... just imagine they renamed several DL urls so I was receiving wrong files/versions on pre-existing GUIDs. Link to comment Share on other sites More sharing options...
shawn Posted May 30, 2010 Report Share Posted May 30, 2010 For those with a version number, this is a better regex (I hope this comes thru): h1>[^<>]+\sv([\d\.]+)< And for those without, I've taken to parsing the updated date: Updated\:\s*([^<>]+)\s*< Then I play with the order a bit to try to organize it a little better. "2010May08" (mine) vs "May 8, 2010" (original). Hey, any chance of getting the ability to perform mutliple textual replacements on a variable? I'd like to be able to replace "Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec" with "01,02,03,04,05,06,07,08,09,10,11,12" - in some form of array replacement operation so the above version number could be transformed from "2010May08" to "20100508". I could see this being used on more than just dates, too. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now