At 6:03 PM -0400 6/22/11, Ronald J Kimball sent email regarding Re: Delete Table Column X:

By the way, you can use a character other than / as the delimiter, to avoid
escaping:

#!/usr/bin/perl -p
s{(^<tr>)(<td>.*?</td>)(<td>.*?</td>)(<td>.*?</td>)(</tr>)}{$1$3$4</tr>};

Excellent. Using JD's nifty creation of a temporary filter file, I now use AS to get the selection, count the table columns, ask which one to delete then build the RegEx based on the column count and desired column to be deleted. This gets written to temp.pl in the Unix filters directory and called to effect the column deletion.

As always, it was an interesting learning experience. Thanks to those who helped out.

--
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.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>

Reply via email to