Page 1 of 1

Newbie question about "wildcard" search and replac

Posted: Thu Jan 22, 2004 7:55 am
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!

Posted: Thu Jan 22, 2004 9:26 am
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.

Posted: Thu Jan 22, 2004 2:56 pm
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

Posted: Thu Jan 22, 2004 3:34 pm
by HoT MaLe
Found it myself! :)

\(\$\).*