Calling regex Experts

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.
 
R

rdrunner

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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top