Advertisement

06.23.2008 at 07:25AM PDT, ID: 23507701
[x]
Attachment Details

Regex Help

Asked by JPERKS1985 in Regular Expressions, .NET

I need to extract all instances of a string found within html.

Between <td class="tn_results_event_text"> and view





The below segment should be extracted,

<td class="tn_results_event_text"><a target="_self" href="/event/Steely-Dan.php">Steely Dan</a></td><td class="tn_results_venue_text"><a target="_self" href="/venid/91&vname=Bank-of-America-Pavilion.php">Bank of America Pavilion</a><br/><span class="tn_results_location_text"><a target="_self" href= "/city/Boston/stprvid/20/location/Boston%2c-MA">Boston  MA</a></span></td><td class="tn_results_datetime_text"><span class="tn_results_day_text">Monday</span><br/><span class="tn_results_date_text">6/23/2008</span><br/><span class="tn_results_time_text">7:30 PM</span></td><td class="tn_results_tickets_text"><a target="_self" href="/Boston-Tickets/evid/793962&event=Steely-Dan.php">view






I'd imagine I'd use a match collection however I'm confused as to how to have the regex pattern not use the very first "tn_results_event_text" part and the very last "View".Start Free Trial
1:
<td class="tn_results_event_text"><a target="_self" href="/event/Steely-Dan.php">Steely Dan</a></td><td class="tn_results_venue_text"><a target="_self" href="/venid/91&vname=Bank-of-America-Pavilion.php">Bank of America Pavilion</a><br/><span class="tn_results_location_text"><a target="_self" href= "/city/Boston/stprvid/20/location/Boston%2c-MA">Boston  MA</a></span></td><td class="tn_results_datetime_text"><span class="tn_results_day_text">Monday</span><br/><span class="tn_results_date_text">6/23/2008</span><br/><span class="tn_results_time_text">7:30 PM</span></td><td class="tn_results_tickets_text"><a target="_self" href="/Boston-Tickets/evid/793962&event=Steely-Dan.php">view<br/>tickets</a></td></tr><tr valign="middle" class="tn_results_divider"><td colspan="4" class="tn_results_divider"></td></tr>	<tr valign="middle" class="tn_results_alternate_row"><td class="tn_results_event_text"><a target="_self" href="/event/Dave-Matthews-Band.php">Dave Matthews Band</a></td><td class="tn_results_venue_text"><a target="_self" href="/venid/78&vname=Comcast-Center/Ma-(formerly-Tweeter-Center)">Comcast Center - Ma (formerly Tweeter Center)</a><br/><span class="tn_results_location_text"><a target="_self" href= "/city/Mansfield/stprvid/20/location/Mansfield%2c-MA">Mansfield  MA</a></span></td><td class="tn_results_datetime_text"><span class="tn_results_day_text">Tuesday</span><br/><span class="tn_results_date_text">6/24/2008</span><br/><span class="tn_results_time_text">7:00 PM</span></td><td class="tn_results_tickets_text"><a target="_self" href="/Boston-Tickets/evid/788865&event=Dave-Matthews-Band.php">view<br/>tickets</a></td></tr><tr valign="middle" class="tn_results_divider"><td colspan="4" class="tn_results_divider"></td></tr>	<tr valign="middle" class="tn_results_standard_row"><td class="tn_results_event_text"><a target="_self" href="/event/Boston-Red-Sox&pid=154.php">Boston Red Sox</a>&#032;Vs.&#032;<br/><a target="_self" href="/event/Arizona-Diamondbacks&pid=58.php">Arizona Diamondbacks</a></td><td class="tn_results_venue_text"><a target="_self" href="/venid/21&vname=Fenway-Park.php">Fenway Park</a><br/><span class="tn_results_location_text"><a target="_self" href= "/city/Boston/stprvid/20/location/Boston%2c-MA">Boston  MA</a></span></td><td class="tn_results_datetime_text"><span class="tn_results_day_text">Tuesday</span><br/><span class="tn_results_date_text">6/24/2008</span><br/><span class="tn_results_time_text">7:05 PM</span></td><td class="tn_results_tickets_text"><a target="_self" href="/Boston-Tickets/evid/732593&event=Boston-Red-Sox-Vs.-Arizona-Diamondbacks.php">view<br/>tickets</a></td></tr><tr valign="middle" class="tn_results_divider"><td colspan="4" class="tn_results_divider"></td></tr>	<tr valign="middle" class="tn_results_alternate_row"><td class="tn_results_event_text"><a target="_self" href="/event/Boston.php">Boston</a></td><td class="tn_results_venue_text"><a target="_self" href="/venid/1561&vname=Nokia-Live-At-Grand-Prairie.php">Nokia Live At Grand Prairie</a><br/><span class="tn_results_location_text"><a target="_self" href= "/city/Grand-Prairie/stprvid/44/location/Grand-Prairie%2c-TX">Grand Prairie  TX</a></span></td><td class="tn_results_datetime_text"><span class="tn_results_day_text">Tuesday</span><br/><span class="tn_results_date_text">6/24/2008</span><br/><span class="tn_results_time_text">8:00 PM</span></td><td class="tn_results_tickets_text"><a target="_self" href="/Boston-Tickets/evid/804687&event=Boston.php">view
[+][-]06.23.2008 at 08:20AM PDT, ID: 21847143

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.23.2008 at 08:57AM PDT, ID: 21847546

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.23.2008 at 09:49AM PDT, ID: 21848023

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Regular Expressions, .NET
Sign Up Now!
Solution Provided By: coldboy
Participating Experts: 2
Solution Grade: A
 
 
[+][-]06.25.2008 at 10:18AM PDT, ID: 21867857

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]07.06.2008 at 07:28PM PDT, ID: 21942479

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.07.2008 at 06:08AM PDT, ID: 21944608

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.07.2008 at 08:03PM PDT, ID: 21950492

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]07.09.2008 at 09:19AM PDT, ID: 21965398

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]07.12.2008 at 01:28PM PDT, ID: 21990294

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]07.13.2008 at 01:38AM PDT, ID: 21991706

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.13.2008 at 09:36AM PDT, ID: 21993100

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628