Jump to content
Sign in to follow this  

Recover all matches

Recommended Posts


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)


I don't know how to do this...

Thanks in advance

Qui ose gagneWho Dares Win[left]CyberExploit[/left]

Share this post

Link to post
Share on other sites

Hi jerem488 !

you get the right values in your array, why do you say you don't know recover them ? ;)

Soit plus clair :)

AutoIt X86 - SciTE 3.6.0WIN 8.1 X64 - Other Example Scripts

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  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.