Regular Expressions Guru needed. Please help!

A

Andreas Klemt

Hello,
please help. I don't now who to ask for this little problem.

I have this HTML

<a name=section1></a>
<table>
<a href="myurl1_1.thm">Link1_1</a>
<a href="myurl1_2.thm">Link1_2</a>
<a href="myurl1_3.thm">Link1_3</a>
<a href="myurl1_4.thm">Link1_4</a>
</table>

<a name=section2></a>
<a href="myurl2_1.thm">Link2_1</a>
<a href="myurl2_2.thm">Link2_2</a>

<table>
<a name=section3></a>
<a href="myurl3_1.thm">Link3_1</a>
<a href="myurl3_2.thm">Link3_2</a>
</table>

I want to GROUP all Links only from
<a name=section1></a> to </table>
But I never know before how many links this section1 has.

Is there a fast way like:
LOOKBEHIND: <a name="section1">
LOOKFORWARD: </table>
GET ALL LINKS: <a.*?>(?<Link>[^<]*)

Many, many thanks for any help!!

Andreas
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,745
Messages
2,569,485
Members
44,909
Latest member
DestinyKetoScam

Latest Threads

Top