On Nov 17, 2011, at 9:04 AM, Linda wrote: > I have a huge document (a book really) that was originally created in > Word (don't know the version). I saved it as an HTML and am trying to > clean it up before breaking it into hundreds of HTML documents. Word > put about 2000 hyperlinks into the document and I want to get rid of > all of them without doing it manually. > > Is there a way for BBEdit's Find/Replace or a script that could remove > the <a> tags?
If that is the only markup in the document you could use Markup > Utilities > Remove Markup to strip them out. Otherwise, open the find dialog, turn on the Grep option, paste this pattern into the Find field "</?a[^>]*?>" (without the quotes)and make sure the Replace field is empty. Do a couple replacements manually to make sure it is doing what you want and do a Replace All. And of course, working on a backup is always a good idea when doing massive find replaces. [fletcher] -- 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>
