Calling regex Experts

  • Thread starter Thread starter Just Me
  • Start date Start date
J

Just Me

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>Cell Content</td> [ more table data tags and content ]
</tr></table>

If anyone has an idea it would be appreciated.
 
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)
 
Back
Top