Jump to content
Sign in to follow this  

regrexp help

Recommended Posts

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]


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  

  • Create New...