Jump to content

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]

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
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...