Sun, 14 Nov 2004 17:20:05 +0100 (11:20 AM EST here) Britt Malka wrote: > Sunday, November 14, 2004 Hi tbtech,
> I know I must soon take the necessary time to learn all about > reg.expression, because they are very useful both in The Bat! and > with PHP. For now I have read the tutorial, but there is a lot I do > not understand. > So I am sorry that once again I have to ask here. > Is it possible to make a filter, where I delete all single ">" > signs. That is: if the text is quoted like this: >>Line one > Line two > The text should be changed to: > Line one >> Line two > Anybody, please? (Yes, I know I'm annoying ...) You might want to look at the two "Search and Replace" quick templates in The Bat! Macro and Solutions Library, http://cgi.marck.free-online.co.uk/library.php and copy (and possibly adapt) one of them for your requirement. Then you could write a template that would include (%Qinclude) the Search and Replace template three times. The first time you would use the Search and Replace template to change all occurrences of ">> " (without the quotes of course) to something unlikely ever to be in the text, perhaps "~~ ". The second time you would delete all occurrences of ">" by changing them to "" (no character at all). The third time you would change all occupancies of "~~ " to "> ". Using: The Bat! v2.12.00, BayesIt! 0.5.9, MyMacros 1.11, gMacrosPlugin 0.80 Windows XP v5.1 - Build 2600 - Service Pack 2 -- Daniel A. Grunberg Kensington, Maryland, USA homepage: www.nyx.net/~dgrunber/ ________________________________________________________ http://www.silverstones.com/thebat/TBUDLInfo.html
