Regular Expressions help needed

Discussion in 'ASP .Net' started by Andreas Klemt, Aug 17, 2004.

  1. Hello,
    I have this HTML

    <a name=section1></a>
    <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 name=section2></a>
    <a href="myurl2_1.thm">Link2_1</a>
    <a href="myurl2_2.thm">Link2_2</a>

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

    I want to GROUP all Links from section1 and section3.
    Can someone please show me how to do my Regular Expression?

    I tried this but it didn't work:
    <a name="section1">.*?<a.*?>(?<Link>[^<]*).*?<a name="section2"></a>.*?<a
    name="section3">.*?<a.*?>(?<Link>[^<]*).*?</html>

    Many thanks for any help in advance!!!
    Andreas
    Andreas Klemt, Aug 17, 2004
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Jay Douglas
    Replies:
    0
    Views:
    598
    Jay Douglas
    Aug 15, 2003
  2. Andreas Klemt

    Regular Expressions Guru needed. Please help!

    Andreas Klemt, Aug 18, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    282
    Andreas Klemt
    Aug 18, 2004
  3. Raghu Raman

    Urgent help needed in Regular expressions

    Raghu Raman, Mar 22, 2005, in forum: ASP .Net
    Replies:
    2
    Views:
    855
    Raghu Raman
    Mar 23, 2005
  4. Replies:
    4
    Views:
    366
    Neil Cerutti
    Feb 5, 2007
  5. Noman Shapiro
    Replies:
    0
    Views:
    231
    Noman Shapiro
    Jul 17, 2013
Loading...

Share This Page