Newbie question about "wildcard" search and replac

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, MudGuard

Post Reply
HoT MaLe
Posts: 3
Joined: Thu Jan 22, 2004 7:35 am

Newbie question about "wildcard" search and replac

Post by HoT MaLe »

Hi. I'm sorry if this has been asked before. I've looked through the forums already, but I don't know anything about programming or wildcards and find a lot of posts just too technical. Same with the TextPad help files - just too "techie".

I work for a translation agency and a prospective client has given us a whole lot of HTML files containing content he'd like us to quote for. (It's our first web localization project.) I want to remove all instances of tags (anything beginning with < and ending with >), so I can then do a word count of actual content.

How do I do this?

Merging all the HTML files from their website into one giant HTML file was easy enough. I've also already removed recurring elements like menus and nav bars. Now I just need to find a way of removing all HTML tags quickly and simply, rather than searching for each tag separately. Then we can see how much actual content we have to translate.

Thanks!
User avatar
MudGuard
Posts: 1295
Joined: Sun Mar 02, 2003 10:15 pm
Location: Munich, Germany
Contact:

Post by MudGuard »

There is a macro called "Strip Tags".

If it is not visible on your Macro menu, go to
Configure - Preferences - Macro

Select "Strip tags" in the left list, then click "Add >>", then click ok and it should be on the Macro menu.
HoT MaLe
Posts: 3
Joined: Thu Jan 22, 2004 7:35 am

Post by HoT MaLe »

Thanks for that. The Macro is fantastic and fun to watch, too. The only other thing I need is how to remove code beginning with $ e.g. $flddomainname_01
HoT MaLe
Posts: 3
Joined: Thu Jan 22, 2004 7:35 am

Post by HoT MaLe »

Found it myself! :)

\(\$\).*
Post Reply