youtuber Posted August 29, 2017 Share Posted August 29, 2017 https://www.alexa.com/siteinfo/autoitscript.com Source code {"us":30284,"global":43709},"rating":false}}]); I need : 473 367 My experiment https://regex101.com/r/l4icdQ/1/ Link to comment Share on other sites More sharing options...
TheDcoder Posted August 29, 2017 Share Posted August 29, 2017 "us":(\d+).*"global":(\d+) https://regex101.com/r/l4icdQ/2 youtuber 1 EasyCodeIt - A cross-platform AutoIt implementation - Fund the development! (GitHub will double your donations for a limited time) DcodingTheWeb Forum - Follow for updates and Join for discussion Link to comment Share on other sites More sharing options...
UEZ Posted August 29, 2017 Share Posted August 29, 2017 #include <Array.au3> $sText = '{"us":473,"global":367},"rating":false}}])' $a = StringRegExp($sText, ":(\d+)", 3) _ArrayDisplay($a) youtuber 1 Please don't send me any personal message and ask for support! I will not reply! Selection of finest graphical examples at Codepen.io The own fart smells best! ✌Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!¯\_(ツ)_/¯ ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ Link to comment Share on other sites More sharing options...
youtuber Posted August 29, 2017 Author Share Posted August 29, 2017 thanks Is there a way without the two for loop to take the figures of this pattern separately $aAlexaglobalSource1 = StringRegExp($aAlexaSourceRead, '".*"global":(\d+)', 3) $aAlexaCountryrankingSource2 = StringRegExp($aAlexaSourceRead, '":(\d+).*"global":', 3) For $j = 0 To UBound($aAlexaglobalSource1) - 1 For $i = 0 To UBound($aAlexaCountryrankingSource2) - 1 GUICtrlSetData($aAlexaGlobalLabel, $aAlexaglobalSource1[$j]) GUICtrlSetData($aAlexaCountryrankingLabel, $aAlexaCountryrankingSource2[$i]) Next Next 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