I need to parse some html
<a href="...">Text 1</a><br>
<a href="...">Text 2</a><br>
...
<a href="...">Text N-1</a><br>
<a href="...">Text N</a><br>
I need all "Text ...", but I don't know what exactly is N. So I wrote this regex
(?:<a href="[^"]*">([^<]*)</a><br>){1,}
Using that regex I can get only first "Text ...", but I need text from all links. Is it possible?
Aucun commentaire:
Enregistrer un commentaire