Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 407803
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T17:37:50+00:00 2026-05-12T17:37:50+00:00

another question of me about regular expression, its so complicated for me :S So

  • 0

another question of me about regular expression, its so complicated for me :S So I’m happy for an additional help.

I have a table and I like to read all links inside this table and split it to groups.

The goal should be

  1. Person 1
  2. Status of person 1

  1. Person 2
  2. Status of Person 2

So i have to get the values inside the links in this table

<a class="darklink" href="testlink">Person 2, - Status of Person 2</a>

Is it possible to search just in a table which has a specific

Tag before? like this
<p>title</p>(because there are other similar tables at my site)

<p>title</p>
<table cellspacing="0" cellpadding="0" border="0" width="95%">
 <tbody>
  <tr>
   <td bgcolor="#999999" colspan="2"><img height="1" border="0" width="1" src="images/dot_transp.gif" alt=" "/> </td>
  </tr>
  <tr>
   <td><a class="darklink" href="asdfer">Person1, - Status of Person1 </a> </td>
   <td valign="bottom"></td>
  </tr>
  <tr>
   <td bgcolor="#999999" colspan="2"><img height="1" border="0" width="1" src="images/dot_transp.gif" alt=" "/> </td>
  </tr>
  <tr>
   <td><a class="darklink" href="aeraseraesr">Person 2, - Status of Person 2</a></td>
   <td valign="bottom"><a href="aeraeraer"> <img hspace="0" height="16" border="0" align="right" width="12" vspace="0" alt=" " src="images/ico_link.gif"/> </a> </td>
  </tr>
  <tr>
   <td bgcolor="#999999" colspan="2"><img height="1" border="0" width="1" src="images/dot_transp.gif" alt=" "/> </td>
  </tr>
  <tr>
   <td><a class="darklink" href="asdfasdf">Person 3. - Status of Person 3</a></td>
   <td valign="bottom"><a href="aerere"> </a> </td>
  </tr>
  <tr> </tr>
 </tbody>
</table>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T17:37:50+00:00Added an answer on May 12, 2026 at 5:37 pm

    Your regular expression should be:

    <a class="darklink" .*?>(.*?). - (.*?)</a>
    

    or if you get line breaks inside your <a> tag:

    <a class="darklink" [\s\S]*?>([\s\S]*?). - *([\s\S]*?)</a>
    

    So, following code should works:

    Regex person = new Regex(@"<a class=""darklink"" .*?>(.*?). - (.*?)</a>");
    foreach (Match m in person.Matches(input))
    {
        Console.WriteLine("First group : {0}", m.Groups[1]);
        Console.WriteLine("Second group: {0}", m.Groups[2]);
    };
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have another question about sum. I'd like to sum the scored of a
I have another simple question about Node. I'm trying to make a simple http
i have another (probably unanswered) question about map views. I have a map view
In response to another question I asked about regular expressions, I was told to
This is another question about well disposing objects from .NET. After having read a
I have another question about binding using C# and the entity framework. Here, I'm
I have another question about TList in Delphi... I'm getting an EArgumentOutOfRangeException when accessing
Answering another question about how const string data was stored in an executable a
By refering to Another Question About ActiveX freezes IE , I wrote an Active
I've recently made another question about connecting to MS-ACCESS database with .NET in C#

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.