Jump to content

Recommended Posts

Posted

Hello,

I need to extract from a raw html page some links like these :

java script:ouvrirIncident('316026');

A piece of the HTML here :

<tr class="listeLigneBlanc">

<td><A class="titredroite" href="java script:ouvrir('316026');">

855

</a></td>

<td><A class="titredroite" href="java script:ouvrir('316026');">

41

</a></td>

<td><A class="titredroite" href="java script:ouvrir('316026');">

1

<tr class="listeLigneBlanc">

<td><A class="titredroite" href="java script:ouvrir('316035');">

85

</a></td>

<td><A class="titredroite" href="java script:ouvrir('316035');">

416

</a></td>

<td><A class="titredroite" href="java script:ouvrir('316035');">

13

As you can see there are 6 links items : i need only the number, one time : here 316026 and 316035, for opening the webpage automatically.

This number is not random but increasing not regularly. I need it to pass it to web browser.

I have tried to extract them without success...

I have all the links into an array, i can count the links but not able to extract numbers...

Have you any ideas ?

Thanks all !

Yann

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
×
×
  • Create New...