Advertisement

12.27.2007 at 02:05PM PST, ID: 23045995 | Points: 500
[x]
Attachment Details

Match mixed alphanumeric text with spaces between tags, no grouping, not a number, no garbage chars

Asked by sapbucket in Regular Expressions, C# Programming Language

Hello,

 I have a regex I am struggling with.

Input:
       <tr>
         <td width="140" class="datahl2">&nbsp;</td>
         <td width="90" class="datahl2b">Offense</td>
         <td width="90" class="datahl2b">Defense</td>
         <td class="datahl4b" width="90">&nbsp;</td>
         <td width="90" class="datahl2b">Offense</td>
         <td width="90" class="datahl2b">Defense</td>
       </tr>
       <tr>
         <td class="datahl2">
           <strong>Points</strong><br>
             >1st third word Quarter<br>
             2nd Quarter<br>
             3rd Quarter<br>
             4th Quarter
         <td class="datacell">
           <strong>96.4</strong><br>
           24.7<br>
           23.2<br>
           21.9<br>
           25.1</td>

Desired output:

Offense
Defense
Offense
Defense
Points
1st third word Quarter
2nd Quarter
3rd Quarter
4th Quarter

I tried the for several hours to construct a regex to do this, and came close, but it matches each individual word (ex: matches "2nd", then matches "Quarter", but not "2nd Quarter"). In general I am struggling with Repetition and Extended Regular expression but I am slowly learning.

Much thanks,
sapbucketStart Free Trial
 
Keywords: Match mixed alphanumeric text with sp…
 
Loading Advertisement...
 
[+][-]12.27.2007 at 02:08PM PST, ID: 20537702

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.

 
[+][-]12.27.2007 at 02:18PM PST, ID: 20537779

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.

 
[+][-]12.27.2007 at 02:48PM PST, ID: 20537996

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.

 
[+][-]12.27.2007 at 03:55PM PST, ID: 20538426

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.

 
[+][-]12.27.2007 at 07:52PM PST, ID: 20539453

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.

 
[+][-]12.27.2007 at 09:07PM PST, ID: 20539812

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.

 
[+][-]12.31.2007 at 04:34PM PST, ID: 20558098

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.

 
[+][-]01.02.2008 at 10:22PM PST, ID: 20571021

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.

 
[+][-]01.04.2008 at 01:52PM PST, ID: 20586426

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.

 
[+][-]01.05.2008 at 08:48PM PST, ID: 20592547

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.

 
[+][-]01.05.2008 at 10:19PM PST, ID: 20592923

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.

 
[+][-]01.05.2008 at 11:03PM PST, ID: 20593040

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.

 
[+][-]01.06.2008 at 12:05AM PST, ID: 20593144

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.

 
[+][-]01.18.2008 at 10:10AM PST, ID: 20692681

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.

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