jerem488 Posted April 25, 2012 Share Posted April 25, 2012 Hello all, I have my string : $p = '<ul class="ul-villes" id="ul-a">' & @CRLF & _ '<div class="sep-content"></div><div class="sep-content"></div><div class="fll"><ul id="ul-a" class="ul-villes"><li><h4>a</h4></li>' & @CRLF & _ '<li><a href="/rhone-alpes/ain/amberieu-en-bugey_01500/">Ambérieu-en-Bugey</a></li>' and I use StringRegExp to extract 2 elements => 01500 and Ambérieu-en-Bugey My StringRegExp function work but I want recover my 2 elements once in. $array = StringRegExp($p, '/rhone-alpes/ain/(?:.*?)_(\d{5})/">(.*?)</a></li>', 3) For $i = 0 To UBound($array) - 1 ConsoleWrite($array[$i] & @CRLF) Next I don't know how to do this... Thanks in advance Qui ose gagneWho Dares Win[left]CyberExploit[/left] Link to comment Share on other sites More sharing options...
wakillon Posted April 26, 2012 Share Posted April 26, 2012 Hi jerem488 ! you get the right values in your array, why do you say you don't know recover them ? Soit plus clair AutoIt 3.3.14.2 X86 - SciTE 3.6.0 - WIN 8.1 X64 - Other Example Scripts 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