mikeparkie Posted September 4, 2015 Report Share Posted September 4, 2015 Download links are coming from here: http://support.asus.com/download.aspx?SLanguage=en&m=X99-S&p=1&s=42&os=45&hashedid=qCCN4VASDw933uL6 I'm after the following files http://dlcdnet.asus.com/pub/ASUS/misc/utils/Chipset_V10_1_2_8_WHQL_X99.zip http://dlcdnet.asus.com/pub/ASUS/misc/audio/Audio_Win7-8-81-10_V6017525.zip http://dlcdnet.asus.com/pub/ASUS/mb/LGA2011/X99-S/X99-S-ASUS-1801.zip http://dlcdnet.asus.com/pub/ASUS/lan/LAN_V20_1_2019_0_WHQL.zip http://dlcdnet.asus.com/pub/ASUS/misc/utils/AISuite3_Win7-8-81-10_X99-SERIES_VER10096.zip And I also need to clear the version numbers up, so they appear as 1.0.0 rather than 1_0_0 or 1-0-0. Could someone give me a hand with the regex please. I got as far as \bChipset_V\d{1,3}_\d{1,3}_\d{1,3}_\d{1,3} But I keep stumbling, still learning regex, it's an acquired art I'm SLOWLY getting to grips with Thanks in advance Link to comment Share on other sites More sharing options...
Etz Posted September 6, 2015 Report Share Posted September 6, 2015 I don`t use filenames for version numbers though, but scraping webpage instead Chipset.*?(\d+\.\d+[\.\w]*).*?.</ Link to comment Share on other sites More sharing options...
mikeparkie Posted September 6, 2015 Author Report Share Posted September 6, 2015 Thanks for the response! That's the same as pulling the content from a page still though? That just gives me the size of the download, how does that help you? Link to comment Share on other sites More sharing options...
Etz Posted September 7, 2015 Report Share Posted September 7, 2015 Apparently they have changed something on their webpage meanwhile (I don`t currently own any ASUS gear), If you can provide me an URL I could take a look. Link to comment Share on other sites More sharing options...
mikeparkie Posted September 7, 2015 Author Report Share Posted September 7, 2015 The first link contains the page with multiple downloads on, each of the following links are the full urls for the direct downloads I then use two variables (in the case of the Chipset drivers) to create the full url http://support.asus.com/download.aspx?SLanguage=en&m=X99-S&p=1&s=42&os=45&hashedid=qCCN4VASDw933uL6 http://dlcdnet.asus.com/pub/ASUS/misc/utils/Chipset_V10_1_2_8_WHQL_X99.ziphttp://dlcdnet.asus.com/pub/ASUS/misc/audio/Audio_Win7-8-81-10_V6017525.ziphttp://dlcdnet.asus.com/pub/ASUS/mb/LGA2011/X99-S/X99-S-ASUS-1801.ziphttp://dlcdnet.asus.com/pub/ASUS/lan/LAN_V20_1_2019_0_WHQL.ziphttp://dlcdnet.asus.com/pub/ASUS/misc/utils/AISuite3_Win7-8-81-10_X99-SERIES_VER10096.zip Variable 1 (url) http://dlcdnet.asus.com/pub/ASUS/misc/utils/Chipset_V{version}_WHQL_X99.zip Variable 2 (version) regex? So I need some regex to match each of the blue version numbers? Link to comment Share on other sites More sharing options...
Etz Posted September 9, 2015 Report Share Posted September 9, 2015 Try: Chipset_V([_\d\.]+) Link to comment Share on other sites More sharing options...
mikeparkie Posted September 10, 2015 Author Report Share Posted September 10, 2015 Thanks, that's good for the chipset's how about the others? In the meantime can you recommend a good regex tutorial so I can figure them out by myself? Link to comment Share on other sites More sharing options...
Etz Posted September 10, 2015 Report Share Posted September 10, 2015 how about the others? Play around with prefix (Chipset_V in example), if necessary add according suffix, to limit the capture In the meantime can you recommend a good regex tutorial so I can figure them out by myself? Unfortunately I don`t, I tend to just experiment, if I don`t know how to exactly capture something. And occasionally I use this to help me out: http://www.ultrapico.com/expresso.htm Link to comment Share on other sites More sharing options...
mikeparkie Posted September 10, 2015 Author Report Share Posted September 10, 2015 ha ha, cheeky I know, thanks for the assistance, I will have a play with that tool and see if educates me Update: thanks for the advice and tools, I've managed to do the regex for the remaining drivers now! I expect the urls to break when the new versions are updated because of ASUS's naming convention, but now I have (albeit) some skills. 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