Sign in to follow this  
Followers 0
faustf

regrexp help

3 posts in this topic




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)

 

Share this post


Link to post
Share on other sites

o thankz so much  , you are  always the  genius

 

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0