You'll want to make that less greedy (using *?) so it doesn't take out
too much. You can also simplify by moving the </? outside the
parentheses so it doesn't need to be repeated.

</?(table|tr|td)[^>]*?>

A little less readable, but we can move the 't' out as well.

</?t(able|r|d)[^>]*?>

-Kendall

On Jun 3, 12:13 am, Alex Satrapa <[email protected]> wrote:
> On 03/06/2010, at 10:39, Nick A <[email protected]> wrote:
>
> > I'm just smashing all the table tags so that I can keep his content
> > and re-style it with CSS once all the tables are gone. How do I select
> > all <table>,</table>,<tr>,</tr>,<td> and </td> at once and delete
> > them?
>
> Find (</?table|</?tr|</?td|</?tr)[^>]*> and replace with '' might work.
>
> Alex Satrapa | web.mac.com/alexsatrapa | Ph: 0407 705 332

-- 
You received this message because you are subscribed to the 
"BBEdit Talk" discussion group on Google Groups.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem, 
please email "[email protected]" rather than posting to the group.

Reply via email to