faustf Posted November 12, 2015 Posted November 12, 2015 hi guyi want grab in this page http://www.mapanet.es/IT/Postal_Codes/?c=AD&n=2&r0=00&r1=07&r2=00&r3=00&r4=00&l=0the name and capi try to use this reggrexpLocal $Array_cap = StringRegExp(BinaryToString($cap_grab, 4), '.innerHTML =(.*?)<br>.+?, (.*?) ', 3)but not go good some one can help me? thankz alot
mikell Posted November 12, 2015 Posted November 12, 2015 Based on my code from your previous post#include <Array.au3> Local $sData = InetRead("http://www.mapanet.es/IT/Postal_Codes/?c=AD&n=2&r0=00&r1=07&r2=00&r3=00&r4=00&l=0") Local $aData = StringRegExp(BinaryToString($sData, 4),'(?s)innerHTML.*?span.*?>([^<]+)</span><span.*?>([^<]+)', 3) Local $aRes[UBound($aData)/2][2] For $i = 0 to UBound($aData)-1 step 2 For $j = 0 to 1 $aRes[$i/2][$j] = $aData[$i+$j] Next Next _ArrayDisplay($aRes)
faustf Posted November 12, 2015 Author Posted November 12, 2015 o thankz so much , you are always the genius
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