Calling regex Experts

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Just Me

    #1

    Calling regex Experts


    I hate regex and I struggle with it, but it may be the simplest way to
    acheive what I need, if only I knew how ?!

    Basically, I need to process HTML. I want to strip everything out including
    all attributes and just leave the following tags.

    <table<tr<td>Ce ll Content</td[ more table data tags and content ]
    </tr></table>

    If anyone has an idea it would be appreciated.


  • rdrunner

    #2
    Re: Calling regex Experts

    How about a Input example?

    Do you need to strip attributes from ALL tags or just table related tags?

    As a 1st thought I would think about something along the lines of....
    (<{\w}*?).*?>
    and replace it with
    $0>
    (Is $ 0 or 1 based? Been a while since i used regexp)

    "Just Me" <news.microsoft .comwrote in message
    news:efRoaV$KHH A.1280@TK2MSFTN GP04.phx.gbl...
    >
    I hate regex and I struggle with it, but it may be the simplest way to
    acheive what I need, if only I knew how ?!
    >
    Basically, I need to process HTML. I want to strip everything out
    including all attributes and just leave the following tags.
    >
    <table<tr<td>Ce ll Content</td[ more table data tags and content ]
    </tr></table>
    >
    If anyone has an idea it would be appreciated.
    >
    >

    Comment

    Working...