On Fri, Nov 18, 2011 at 08:07:37AM -0800, Linda wrote: > On further inspection, I was wrong about it being hyperlinks. It is > named anchors that I want to remove. I want to leave the hyperlinks > in the document.
Do you mean that you want to remove tags like this <a name="section1">? This would probably be sufficient: Find <a\s+name=[^>]*>([^<]*)</a> Replace \1 If for some reason your named anchor tags have additional attributes, you might need this: Find <a\s+[^>]*(?<=\s)name=[^>]*>([^<]*)</a> Replace \1 Ronald -- 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>
