Click here to Skip to main content
15,890,185 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Below is the regular expression to find all the table from the page.

string TableExpression = "<table[^>]*>(.*?)";


How can we give class name into upper given table expression . i means how can we modify upper regular expression if we want to fetch table based on the class name of the table.
Posted
Comments
Sergey Alexandrovich Kryukov 13-Apr-12 0:31am    
Nothing is clear. Is it HTML table? Is it "C#"? ASP.NET? What do you mean by "fetch table"? If this is APS.NET, why fetching anything is you generate your HTML code by yourself on your server side?
--SA

1 solution

Use jQuery instead. Make sure your table's have a unique class.

JavaScript
$(".table-class");
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900