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

  • Home
  • SEARCH
  • 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 7739491
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T08:32:13+00:00 2026-06-01T08:32:13+00:00

what will be the regular expression for a table with class name tn_result ?

  • 0

what will be the regular expression for a table with class name tn_result?

I have tried two expressions given below but neither is working. What is wrong with them? How can I make this work?

 string TableExpression = "<TTable class=\"tn_results\">(.*?)</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-06-01T08:32:14+00:00Added an answer on June 1, 2026 at 8:32 am

    See this answer on why this is a bad idea.

    The answer depends on whether you need to get this table server-side or client-side.

    On the client, use jQuery:

    var table = $('table.tn_result');
    

    On the client, if you’re using ASP.Net WebForms, it will probably be easiest to add runat="server" and id attributes on the table(s) you want to get. Then you can just get them in the code-behind like any other control:

    var table = this.TableId; //not really required, but hopefully makes things clear
    if(table.Attributes["class"].Contains("tn_result"))
    {
        // do something with the table
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

What will be the regular expression to accept 'CP123' First two letters CP and
Does anyone have a regular expression handy that will match any legal DNS hostname
Given a regular expression, I'm looking for a package which will dynamically generate the
I have a table that has two records (there will be many at runtime).
What will be proper regular expression for git repositories? example link: git@github.com:someone/someproject.git so it
I need a regular expression that will match the first letter of a song
I want a Perl regular expression that will match duplicated words in a string.
How can I create a regular expression that will grab delimited text from a
I'm looking for a regular expression that will match all strings EXCEPT those that
I am looking for a regular expression that will test for matches against a

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.