Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.0 and 1.1 Basics
|
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 5th, 2008, 04:26 PM
Authorized User
 
Join Date: Feb 2007
Posts: 88
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to toddw607 Send a message via Yahoo to toddw607
Default Using Regular Expressions in ASP.NET/VB.NET

Hi Everyone,
     I am trying to highlight an entire table row by using one parameter called Search_Str. Right now I can place the Search_Str within a regular expression and another program will highlight that string but I need to to highlight the entire table row that the keyword is contained in. Here are a few examples:
     1.) This will highlight only the string:
            Dim re as New RegEx (Search_Str)
     2.) This will highlight the entire table:
            Dim newTest as String
            newTest = String.Format("<[TableBody*>].*{0}.*</TableBody>", Search_Str)
            Dim re as New RegEx(newTest)

   and this is what the xml looks like that contains the table row:
Code:
             </TableBody>
      <TableBody wp:type="tablebody">
        <tr wp:type="tr_body">
        <TableCell wp:type="tablecell_body">
           <CellBodyRight wp:type="para" wp:id="1006521" wp:style="display: block; color: #000000; font-style: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt; text-align: right; text-decoration: none; text-indent: 0pt; text-transform: none; vertical-align: baseline"> -1 </CellBodyRight> 
        </TableCell>
        <TableCell wp:type="tablecell_body">
           <CellBodyCaps wp:type="para" wp:id="1006523" wp:style="display: block; color: #000000; font-style: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt; text-align: left; text-decoration: none; text-indent: 0pt; text-transform: uppercase; vertical-align: baseline"> </CellBodyCaps> 
        </TableCell>
        <TableCell wp:type="tablecell_body">
           <CellBodyCaps wp:type="para" wp:id="1006525" wp:style="display: block; color: #000000; font-style: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt; text-align: left; text-decoration: none; text-indent: 0pt; text-transform: uppercase; vertical-align: baseline"> </CellBodyCaps> 
        </TableCell>
        <TableCell wp:type="tablecell_body">
           <dot wp:type="para" wp:id="1006527" wp:style="display: block; color: #000000; font-style: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 7pt; margin-right: 0pt; margin-top: 0pt; text-align: left; text-decoration: none; text-indent: -7pt; text-transform: none; vertical-align: baseline"> HOUSING, INDICATOR LIGHT </dot> 
        </TableCell>
        <TableCell wp:type="tablecell_body">
           <CellBody wp:type="para" wp:class="CellBody" wp:id="1006529" wp:style="display: block;"> 1 </CellBody> 
        </TableCell>
        <TableCell wp:type="tablecell_body">
           <CellBody wp:type="para" wp:class="CellBody" wp:id="1006531" wp:style="display: block;"> 111490001 </CellBody> 
        </TableCell>
        <TableCell wp:type="tablecell_body">
           <CellBody wp:type="para" wp:class="CellBody" wp:id="1006533" wp:style="display: block;"> LUMIN </CellBody> 
        </TableCell>
        </tr>
      </TableBody>


    Does anyone have any ideas that could get me started? TIA






Similar Threads
Thread Thread Starter Forum Replies Last Post
Turning a regular ASP.NET App into an AJAX ASP.Net donrafeal7 Ajax 2 August 31st, 2007 12:33 AM
Parse XML doc using VB.NET into ASP.NET page kwilliams Classic ASP XML 17 November 11th, 2005 10:42 AM
call window dialog component with asp.net/vb.net s3ng ASP.NET 1.x and 2.0 Application Design 0 June 21st, 2005 04:54 AM
.NET Regular Expressions Dave Doknjas .NET Web Services 2 August 8th, 2003 07:10 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.