BayesIt Tutorial in English
Hello TB List, as there have been several requests for an English tutorial for the BayesIt-Plugin and because there is only a Russian one available, we published since some minutes an English one. It explains the basic functions of the plugin with screenshots and has also a FAQ inside. It will be developed further step by step. Please make comments or suggestions regarding to translation, improvements, mistakes, etc. here, or e-mail to: [EMAIL PROTECTED] Also comments and tips can be made in the tutorials itself. Thanks to Stefan Starke who takes care of the German language file for several AntiSpam Plugins. He is responsible and the author for that tutorial. http://www.thebatworld.de/system/sections/index.php?op=viewarticleartid=133 -- Ciao Thomas Using: TheBat! 3.0.2.10 System: Windows XP Build 2600 Service Pack 2 PGP:Key-ID: 0x70D9F03B Visit: TheBat! World on http://www.thebatworld.de pgpPpUZCYKwS7.pgp Description: PGP signature Current version is 3.0.1.33 | 'Using TBUDL' information: http://www.silverstones.com/thebat/TBUDLInfo.html
PGP Tutorial (was Re:PGP - Checking Signature)
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Marck, Thursday, October 23, 2003, 6:51:31 AM, you wrote: MDP You must set PGP wrapping off and set your TB wrap to around 70. MDP Currently your lines are too long to guarantee message integrity MDP (when passing through old SMTP servers that may wrap long lines MDP themselves). OK. I turned off wrapping in PGP and checked TB, which was at 70. Now, a question, since I'm new to PGP. Other than this forum, I don't run across signed messages. I'd like to know how people are using PGP to help them in their e-mail. Should I sign *all* my messages? Should I urge all my associates to get onto PGP? How do I manage this additional tool when most of my correspondents are using MS mailing programs? Thanks for your comments. - -- Michael Rudnick [EMAIL PROTECTED] Using The Bat! 2.01.3 on Windows 4.0 (1381) Service Pack 5 -BEGIN PGP SIGNATURE- Version: PGP SDK 3.0.2 iQA/AwUBP5fF8hIbxY05w9+FEQJfZACg4NvRBb0lEjYoXLzArGZ1LhT/LZQAnRfM zqVzSwtAVzzlwxwv8OxqLL48 =kSdG -END PGP SIGNATURE- Current version is 2.01.3 | Using TBUDL information: http://www.silverstones.com/thebat/TBUDLInfo.html
Re: PGP Tutorial (was Re:PGP - Checking Signature)
Hi Michael, @23-Oct-2003, 08:14 -0400 (13:14 UK time) Michael Rudnick said to Marck: MDP You must set PGP wrapping off and set your TB wrap to around MDP 70. OK. I turned off wrapping in PGP and checked TB, which was at 70. Perfection. gpg: Signature made 10/23/03 13:13:38 GMT Standard Time using DSA key ID 39C3DF85 gpg: Good signature from Michael Rudnick [EMAIL PROTECTED] Now, a question, since I'm new to PGP. Other than this forum, I don't run across signed messages. You'll find signed messages in PGP forums too ;-). I'd like to know how people are using PGP to help them in their e-mail. An increasing number is all that can be said here. I have no statistics for it. Should I sign *all* my messages? I don't sign messages to close friends and family. I do sign all other messages. Should I urge all my associates to get onto PGP? Where possible, yes. How do I manage this additional tool when most of my correspondents are using MS mailing programs? MS software is PGP and S/MIME aware. PGP comes with OE compatibility. -- Cheers -- .\\arck D Pearlstone -- List moderator TB! v2.01.3 on Windows XP 5.1.2600 Service Pack 1 ' pgp0.pgp Description: PGP signature Current version is 2.01.3 | Using TBUDL information: http://www.silverstones.com/thebat/TBUDLInfo.html
Re: PGP Tutorial (was Re:PGP - Checking Signature)
Hi Michael, on Thu, 23 Oct 2003 08:14:26 -0400GMT (23.10.03, 14:14 +0200GMT here), you wrote in mid:[EMAIL PROTECTED] : MR OK. I turned off wrapping in PGP and checked TB, which was at 70. ***[23.10.03 18:19:57] PGP Signature Status: good MR Now, a question, since I'm new to PGP. Other than this forum, I don't MR run across signed messages. You might want to join the PGP-Basics mailing list: [EMAIL PROTECTED] It is certainly a good forum to discuss all the pros and cons of PGP in general and not related to a particular mailer. :-) -- Cheers Peter Black Holes were created when God divided by zero. Winamp currently playing: Démis Roussos Aphrodite's Child - Spring Summer Winter Fall pgp0.pgp Description: PGP signature Current version is 2.01.3 | Using TBUDL information: http://www.silverstones.com/thebat/TBUDLInfo.html
Re:PGP Tutorial (was Re:PGP - Checking Signature)
Peter and others, Thursday, October 23, 2003, 12:30:14 PM, you wrote: PM Hi Michael, PM on Thu, 23 Oct 2003 08:14:26 -0400GMT (23.10.03, 14:14 +0200GMT here), PM you wrote in mid:[EMAIL PROTECTED] : PM You might want to join the PGP-Basics mailing list: PM [EMAIL PROTECTED] It is certainly a good forum PM to discuss all the pros and cons of PGP in general and not related PM to a particular mailer. :-) Thanks for the info. I'll check out the Yahoo group when I have the time (about 3 years from now g). -- Michael Rudnick [EMAIL PROTECTED] Using The Bat! 2.01.3 on Windows 4.0 (1381) Service Pack 5 Current version is 2.01.3 | Using TBUDL information: http://www.silverstones.com/thebat/TBUDLInfo.html
Regex-Tutorial Update
Good evening Batsmen, I just want to let you know that I updated the Regex-tutorial on http://www.regenechsen.de/regex_en/regex_1_en.html and -of course- there is a PDF-download available. Together with Marck who helped me with the translation I added some regex-examples. Thanks to Marck who made this newer version possible. If you have any suggestions feel free to write via PM. THX. -- Best regards, Gerd == Tutorial for using regular expressions with TheBat! www.regenechsen.de The 4 Basic Food Groups: Ice Cream, Pizza, Coke and Women. now playing: WDR2 :-) Current version is 2.00 | Using TBUDL information: http://www.silverstones.com/thebat/TBUDLInfo.html
Re: Regex-Tutorial Update
Hello Gerd, I just want to let you know that I updated the Regex-tutorial on http://www.regenechsen.de/regex_en/regex_1_en.html and -of course- there is a PDF-download available. Thanks! -- Best regards, Greg Strong Using The Bat! v2.00 on Windows XP 5.1 Build 2600 Service Pack 1 Current version is 2.00 | Using TBUDL information: http://www.silverstones.com/thebat/TBUDLInfo.html
Tutorial (was: Proposal: The Bat! Message Board)
Hello Dieter, On Fri, 25 Oct 2002 17:39:54 +0200 GMT (25/10/02, 22:39 +0700 GMT), Dieter Hummel wrote: We _will_ publish a book in German(y). We'll use the BOD scheme to take account of possible changes. Guess that we will refer to v2 also. Good news from you again. :-) Please keep me updated. -- Cheers, Thomas. Moderator der deutschen The Bat! Beginner Liste. Money can't buy happiness but it can certainly rent it for a couple of hours. Message reply created with The Bat! 1.62/Beta7 under Chinese Windows 98 4.10 Build A using an AMD Athlon K7 1.2GHz, 128MB RAM Current version is 1.61 | Using TBUDL information: http://www.silverstones.com/thebat/TBUDLInfo.html
Re[2]: TUTORIAL
Hello ETM, Saturday, August 3, 2002, 5:35:38 AM, you wrote: E I was not successful in importing 3 gig of OE6 mail into TB, but E I did import addresses into TB. 3Gb? Jesus, that is quit a lot of email! :-) -- Best regards, Michael No one's tall anymore. They're vertically enhanced. Current Ver: 1.61 FAQ: http://faq.thebat.dutaint.com Unsubscribe: mailto:[EMAIL PROTECTED] Archives : http://tbudl.thebat.dutaint.com Moderators : mailto:[EMAIL PROTECTED] TBTech List: mailto:[EMAIL PROTECTED] Bug Reports: https://www.ritlabs.com/bt/
Re: TUTORIAL
ETM, At 12:35 AM on Saturday, August 03, 2002 you [E] wrote the following about [TUTORIAL]: E [...] I was not successful in importing 3 gig of OE6 mail E into TB, but I did import addresses into TB. [/...] I wonder if Mailbag Assistant would have helped in this transition. [fookes software] -- Jan Rifkinson Ridgefield, CT USA TB! V1.62/Beta1/W2K_SP2 ICQ 41116329 Current Ver: 1.61 FAQ: http://faq.thebat.dutaint.com Unsubscribe: mailto:[EMAIL PROTECTED] Archives : http://tbudl.thebat.dutaint.com Moderators : mailto:[EMAIL PROTECTED] TBTech List: mailto:[EMAIL PROTECTED] Bug Reports: https://www.ritlabs.com/bt/
Re: TUTORIAL
Fri, 2 Aug 2002 23:09:04[GMT -0300] (10:09 PM EDST) KoMpLoT wrote: looking for a good tutorial about how to config and use TB! at max! thanks! A way around a tutorial, per se: Menu Navigator will help you find out how to use the menu to accomplish the things whose name you can guess. Just click on the [?] at the top of the window and search for a word for what your trying to do. For instance: [?] | shortcutsyields: Main Menu - View - Edit shortcuts Using The Bat! v1.60q/Post3 on Windows 95 4.0 Build B -- Daniel A. Grunberg Kensington, Maryland, USA homepage: www.nyx.net/~dgrunber/ Current Ver: 1.61 FAQ: http://faq.thebat.dutaint.com Unsubscribe: mailto:[EMAIL PROTECTED] Archives : http://tbudl.thebat.dutaint.com Moderators : mailto:[EMAIL PROTECTED] TBTech List: mailto:[EMAIL PROTECTED] Bug Reports: https://www.ritlabs.com/bt/
Re[2]: TUTORIAL
Hello Daniel, Saturday, August 3, 2002, 12:01:49 PM, you wrote: DG Fri, 2 Aug 2002 23:09:04[GMT -0300] (10:09 PM EDST) KoMpLoT wrote: looking for a good tutorial about how to config and use TB! at max! thanks! DG A way around a tutorial, per se: Menu Navigator will help you find out DG how to use the menu to accomplish the things whose name you can guess. DG Just click on the [?] at the top of the window and search for a word DG for what your trying to do. For instance: DG [?] | shortcutsyields: DG Main Menu - View - Edit shortcuts DG Using The Bat! v1.60q/Post3 DG on Windows 95 4.0 Build B alright, Thanks to all of you for helping me with TB! -- Best regards, KoMpLoTmailto:[EMAIL PROTECTED] Current Ver: 1.61 FAQ: http://faq.thebat.dutaint.com Unsubscribe: mailto:[EMAIL PROTECTED] Archives : http://tbudl.thebat.dutaint.com Moderators : mailto:[EMAIL PROTECTED] TBTech List: mailto:[EMAIL PROTECTED] Bug Reports: https://www.ritlabs.com/bt/
Re: TUTORIAL
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Sat, 3 Aug 2002, at 12:15:44 [GMT -0300], KoMpLoT wrote: K alright, K Thanks to all of you for helping me with TB! Wow, bottom posted with TB! I wish the people I support at work were so responsive. We may have a new expert here soon. and thank YOU, Mike Yetto - -- [EMAIL PROTECTED] PGP Key mailto:[EMAIL PROTECTED]?subject=MAY:PGP_Key E-mailed using The Bat! v1.61 running on Windows 2000 5.0 Build 2195 Service Pack 2 -BEGIN PGP SIGNATURE- Version: PGP 6.5.8 iQA/AwUBPUv1Jtkz/SR3Uv4yEQL7OwCg6+rXBgnLhxWVT0pv4rPvJYrUH9EAni+h oDqAfQ5Uak9/ft0BZJxi0BI+ =/5wC -END PGP SIGNATURE- Current Ver: 1.61 FAQ: http://faq.thebat.dutaint.com Unsubscribe: mailto:[EMAIL PROTECTED] Archives : http://tbudl.thebat.dutaint.com Moderators : mailto:[EMAIL PROTECTED] TBTech List: mailto:[EMAIL PROTECTED] Bug Reports: https://www.ritlabs.com/bt/
Re: TUTORIAL
Hello KoMpLoT, Friday, August 2, 2002, 11:39:04 PM, you wrote: K Hi ppl!, looking for a good tutorial about how to config and use TB! at max! K thanks! To the Max, you say. Well, we'll need to know where Max is! LOL! Try Help Topics/Contents... Gettings Started with the Bat/ Setup Does that cover everything, to get started? -- Best regards, Adam Current Ver: 1.61 FAQ: http://faq.thebat.dutaint.com Unsubscribe: mailto:[EMAIL PROTECTED] Archives : http://tbudl.thebat.dutaint.com Moderators : mailto:[EMAIL PROTECTED] TBTech List: mailto:[EMAIL PROTECTED] Bug Reports: https://www.ritlabs.com/bt/
TUTORIAL
Hi ppl!, looking for a good tutorial about how to config and use TB! at max! thanks!
Re: TUTORIAL
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Fri, 2 Aug 2002, at 23:09:04 [GMT -0300], KoMpLoT wrote: K Hi ppl!, looking for a good tutorial about how to config and use TB! at max! K thanks! You might want to start by switching from Outlook Express, or at least avoiding HTML formatted e-mail. If you actually have The Bat! loaded it will be easier to follow any directions you can find in the help files, the FAQ and this list. Links to the FAQ and the archives can be found in the footer of almost any messages mailed to the list, although yours didn't seem to have a footer. Michael A. Yetto - -- [EMAIL PROTECTED] PGP Key mailto:[EMAIL PROTECTED]?subject=MAY:PGP_Key E-mailed using The Bat! v1.61 running on Windows 2000 5.0 Build 2195 Service Pack 2 -BEGIN PGP SIGNATURE- Version: PGP 6.5.8 iQA/AwUBPUtK4Nkz/SR3Uv4yEQKFwwCgnnYU3Zm5B/G7B/ahbPj9DSW03FMAmQEs 4gBBT7G7ujlvx/jNOhrGDoSx =tT7I -END PGP SIGNATURE- Current Ver: 1.61 FAQ: http://faq.thebat.dutaint.com Unsubscribe: mailto:[EMAIL PROTECTED] Archives : http://tbudl.thebat.dutaint.com Moderators : mailto:[EMAIL PROTECTED] TBTech List: mailto:[EMAIL PROTECTED] Bug Reports: https://www.ritlabs.com/bt/
Re: TUTORIAL
thanks, and yes, I do have TB! installed, it's just that I want to change OE but the problem is that there are many things that I can't figure out how to configure in TB! anyway thanks - Original Message - From: Michael A. Yetto [EMAIL PROTECTED] To: KoMpLoT on tbudl [EMAIL PROTECTED] Sent: Saturday, August 03, 2002 12:15 AM Subject: Re: TUTORIAL -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Fri, 2 Aug 2002, at 23:09:04 [GMT -0300], KoMpLoT wrote: K Hi ppl!, looking for a good tutorial about how to config and use TB! at max! K thanks! You might want to start by switching from Outlook Express, or at least avoiding HTML formatted e-mail. If you actually have The Bat! loaded it will be easier to follow any directions you can find in the help files, the FAQ and this list. Links to the FAQ and the archives can be found in the footer of almost any messages mailed to the list, although yours didn't seem to have a footer. Michael A. Yetto - -- [EMAIL PROTECTED] PGP Key mailto:[EMAIL PROTECTED]?subject=MAY:PGP_Key E-mailed using The Bat! v1.61 running on Windows 2000 5.0 Build 2195 Service Pack 2 -BEGIN PGP SIGNATURE- Version: PGP 6.5.8 iQA/AwUBPUtK4Nkz/SR3Uv4yEQKFwwCgnnYU3Zm5B/G7B/ahbPj9DSW03FMAmQEs 4gBBT7G7ujlvx/jNOhrGDoSx =tT7I -END PGP SIGNATURE- Current Ver: 1.61 FAQ: http://faq.thebat.dutaint.com Unsubscribe: mailto:[EMAIL PROTECTED] Archives : http://tbudl.thebat.dutaint.com Moderators : mailto:[EMAIL PROTECTED] TBTech List: mailto:[EMAIL PROTECTED] Bug Reports: https://www.ritlabs.com/bt/ Current Ver: 1.61 FAQ: http://faq.thebat.dutaint.com Unsubscribe: mailto:[EMAIL PROTECTED] Archives : http://tbudl.thebat.dutaint.com Moderators : mailto:[EMAIL PROTECTED] TBTech List: mailto:[EMAIL PROTECTED] Bug Reports: https://www.ritlabs.com/bt/
Re: TUTORIAL
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Sat, 3 Aug 2002, at 00:25:21 [GMT -0300], KoMpLoT wrote: K thanks, and yes, I do have TB! installed, it's just that I want to change OE K but the problem is that there are many things that I can't figure out how to K configure in TB! K anyway thanks Top posting is another Outlook Express habit you should break, as well as leaving everything ever sent to the thread in each reply. Please learn to snip extraneous text. There are several examples of macros available in the FAQ for stripping signatures, formatting greetings, cleaning subject lines, etc. My suggestion is that you visit the FAQ pages and then use The Bat! for e-mail to this list. We'll be able to help you refine your setup. Mike Yetto - -- [EMAIL PROTECTED] PGP Key mailto:[EMAIL PROTECTED]?subject=MAY:PGP_Key E-mailed using The Bat! v1.61 running on Windows 2000 5.0 Build 2195 Service Pack 2 -BEGIN PGP SIGNATURE- Version: PGP 6.5.8 iQA/AwUBPUtXjdkz/SR3Uv4yEQJoYACgpFQAz3KV3LfDY0k4tO0L3kK1z5MAn3t3 g/brqhO/ZUNeLAaOa+AHzwvx =7Sxm -END PGP SIGNATURE- Current Ver: 1.61 FAQ: http://faq.thebat.dutaint.com Unsubscribe: mailto:[EMAIL PROTECTED] Archives : http://tbudl.thebat.dutaint.com Moderators : mailto:[EMAIL PROTECTED] TBTech List: mailto:[EMAIL PROTECTED] Bug Reports: https://www.ritlabs.com/bt/
Re: TUTORIAL
On Fri, 2002-08-02 at 22:25, KoMpLoT wrote: thanks, and yes, I do have TB! installed, it's just that I want to change OE but the problem is that there are many things that I can't figure out how to configure in TB! A good start (as Michael suggested) is TB!s help file. If you cannot find the information in there, or it isn't entirely clear, you could always try the FAQ site maintained by one of the list moderators, which can be found at http://faq.thebat.dutaint.com. If for some reason you sill have a little trouble grasping some of the setup in TB! (trust me, it can get that way sometimes), feel free to ask, and I'm sure the many members of the list will be more than willing to assist you in the problem you are having. -- Jonathan Angliss ([EMAIL PROTECTED]) PGPKey: mailto:[EMAIL PROTECTED]?subject=SendKeys Current Ver: 1.61 FAQ: http://faq.thebat.dutaint.com Unsubscribe: mailto:[EMAIL PROTECTED] Archives : http://tbudl.thebat.dutaint.com Moderators : mailto:[EMAIL PROTECTED] TBTech List: mailto:[EMAIL PROTECTED] Bug Reports: https://www.ritlabs.com/bt/
Re: TUTORIAL
I simultaneously ran OE and TB until I was comfortable, probably started in about September and maintained the simultaneous mail programs until January 1. I downloaded mail into TB but allowed it to remain on server. I downloaded mail into OE and deleted mail at the server when I was in OE. I kind of spoon-fed myself on TB until I was more sure of myself. By January I cut the cord. I was on this list during that time, was able to ask questions of those in the know when I encountered a hitch. It's a way to get your feet wet without jumping in over your head. I now only use TB and have OE disabled although it remains on my system (in another partition) so I can refer to old mail as necessary. I was not successful in importing 3 gig of OE6 mail into TB, but I did import addresses into TB. Elaine Hello KoMpLoT On Friday, August 2, 2002, you wrote thanks, and yes, I do have TB! installed, it's just that I want to change OE but the problem is that there are many things that I can't figure out how to configure in TB! anyway thanks Current Ver: 1.61 FAQ: http://faq.thebat.dutaint.com Unsubscribe: mailto:[EMAIL PROTECTED] Archives : http://tbudl.thebat.dutaint.com Moderators : mailto:[EMAIL PROTECTED] TBTech List: mailto:[EMAIL PROTECTED] Bug Reports: https://www.ritlabs.com/bt/
[regex-tutorial]: Part 5
Hi Batsmen, here it is: the last part of the regex tutorial. It took some time but finally we (Marck and I) made it. Again: many thanks to Marck who made it possible to publish this tutorial in English. You will find this part online at http://www.pro-privacy.de/regex/en/part1.htm in a few days as well as a PDF-version for download. Have fun :-)) ===Start=== 7. How to use Regular Expressions in TB Finally, we can try to use our new language in TB. First of all we have to know which tools are available to work with regular expressions. These tools are TB's macros. 7.1 Macros Not all of TB's macros support the use of regex. Most of the macros have nothing to do with regex, but you can use regex on them to extract or modify the information. And that is one feature of TB that makes it so powerful. The first macro we will look at is: %REGEXPTEXT=regex What does it do? It searches for the pattern regex within the original text of a mail and returns the matched characters. The syntax is quite straightforward, look at the following example: %REGEXPTEXT=[\d\.]+ This macro used in a quick template and applied to a mail returns digits and dots. Let's have a look at a fairly similar macro: %REGEXPQUOTES=regex This macro does exactly the same as the first one except that the returned text is not plain text but quoted text. That was nice and easy. But when it comes to the extraction of text from the header of a mail (kludges) or address book entries we need to combine some macros: The first one we will need for that is %SETPATTREGEXP. It is used to define the search pattern in the way %SETPATTREGEXP=regex. regex is the regular expression you created to match the text. The second one is %REGEXPMATCH. Again, this is easily defined: %REGEXPMATCH=string with string being any text. It can be a template, which means that any generic text can be used, so almost any TB macro can be used to provide the text here. The definition of a regex through %SETPATTREGEXP is valid unless it is overwritten by a second appearance of a %SETPATTREGEXP. This means you can use the same pattern on several different generic texts in one go. Before we have a look at another example I have to correct something. Did I say the syntax is quite easy earlier in this chapter? Well, that's true as long as one only looks at one macro. But let's see how this changes when we let the macro parse some text: We already know the macro %REGEXPQUOTES. This could be written in a different way. Let's assume that we receive Mails from a feedback form. Part of the content is newsletter: yes or newsletter: no. We would like to create an autoresponder that uses exactly this information in a reply template, for example: Thank you for filling out our feedback form. You entered 'newsletter: yes/no'. Are you sure? You can create more sophisticated text and a better filter to use different templates for the reply, but for the moment let's stick to this example;-). The macro %QUOTES defines what text is to be used as quoted text in a reply. The only problem is that we have to tell %QUOTES which text should be used. After that we can copy it to the reply template, add our standard text and save it. Ok, first the regex: ^newsletter:\s*(yes|no). This has to be defined by %SETPATTREGEXP=^newsletter:\s*(yes|no). We already know that %REGEXPMATCH applies the search pattern on any generic text, so we need a macro that provides the original text of the mail and that is %TEXT. Now we have to put it all together and create a template that uses the macros in the correct order. The only thing that makes it difficult to use these macros are the -characters which are used as delimiters for the definition part. In %SETPATTREGEXP the search pattern is defined between these and in %QUOTES the text that will be inserted as quoted is defined. Once you start to combine the macros you have to tell TB which -character is delimiter of which macro: the first macro must know whether the second -character is the end of the macro or the beginning of the second macro. The same applies at the end of the second macro and so on. This can be achieved by doubling the -character (escaping) or using different delimiters. Simply, this looks like: %M1=%M2=Def2%M3=Def3. This is getting a bit confusing and hard to follow, so we could instead say: %M1=%M2='Def2'%M3='Def3'. The example above would look like: %QUOTES=%SETPATTREGEXP='^newsletter:\s*(yes|no)'%REGEXPMATCH='%TEXT' This example could be written in a simpler way: %REGEXPQUOTES=^newsletter:\s*(yes|no), but this is because we extracted text out of the original text with %TEXT. Next comes a macro combination that allows the extraction of several parts of the text. We know that we could define subpatterns in the regex by grouping sections with parentheses. We must now find a way to address them within TB. TB provides a macro for this %REGEXPBLINDMATCH=string. But this does not return anything useful. Of course, we wanted to extract
Re: [regex-tutorial]: Part 4
Hello Januk Aggarwal ! On Wed, 19 Jun 2002 22:12:52 -0700 GMT your local time, which was 20.06.2002, 07:12 (GMT+0200) where I live, you wrote: Cool, I just tested this and TB seems to finally support back references. This should make accurate regexps a little easier. I wonder when this was fixed? Hmmm, don't ask me, but when I wrote the German version in March it already worked fine. -- Best regards, Gerd === Tutorial PGP and TB! and How to Use Regular Expressions in TB! at www.pro-privacy.de --- Program: the conversion of input into error messages. --- now playing: WDR2 :-) Current Ver: 1.60q FAQ: http://faq.thebat.dutaint.com Unsubscribe: mailto:[EMAIL PROTECTED] Archives : http://tbudl.thebat.dutaint.com Moderators : mailto:[EMAIL PROTECTED] TBTech List: mailto:[EMAIL PROTECTED] Bug Reports: https://www.ritlabs.com/bt/
[regex-tutorial]: Part 3
chunks. Which days are possible: a) 01-09, the preceding zero could be missing. b) 10-29, all months of a year have at least 29 days. Ok, there is one error we are allowed to make: February only has 29 days in leap years. We will assume this is ok, otherwise it might be almost impossible to create the Regex. c) 30, all months except February d) 31, only January, March, May, July, August, October, December. Possible numbers for months are 01-10 (the preceding zero might be missing) and 11, 12. We want to allow two or four digit years. In case of four digit years we only accept those that start with 19xx or 20xx Ok, now we have what we need. Let's start: Case a) and b) combined with the allowed months gives us: (0?[1-9]|[12][0-9])\.(0?[1-9]|1[0-2])\. Case c) with all possible months: 30\.((0?[13-9])|(1[0-2]))\. And finally case d) with possible months: 31\.(0?[13578]|1[02])\. Now the years: (\d{2}|(19|20)\d{2}) The first three parts have to be alternatives whereas the pattern for years is mandatory. To avoid that the Regex matches within a longer sequence of digits to find something that only looks like a date, we envelope the whole Regex with \b metacharacters. That should give \b(((0?[1-9]|[12][0-9])\.(0?[1-9]|1[0-2])\.)|(30\.((0?[13-9])|(1[0-2]))\.)|(31\.(0?[13578]|1[02])\.))(\d{2}|(19|20)\d{2})\b [Note: the regex is wrapped due to layout reasons. All must be used as a single long line!] Incredible: that's a cracker! You found something different? Even something better? Well, I think that is 'normal'. You can always write a regex in another way to give the same result. And of course: you can improve almost every Regex. My Regex only shows one way to approach the problem: the way I like to do it. I hope you were able to follow my thinking. Problem 3. This is not very difficult. Again, divided into chunks of the whole problem: First name and last name can be extracted from the mail-address. Sender:\s*(.*?)\.(.*?)@(.*?)\.\w+\s* should be sufficient. The question mark in the second subpattern might be redundant because the @-character follows anyway. But it won't hurt anyone, would it? Date: phew, we are in luck. The format is mandatory. We don't have to use the killer regex of problem 2 ;-): Date:\s*((\d{1,2}\.){2}\d{4})\s* And now the report number: Report-no.:\s*(.*) To make sure that the regex checks the whole string we add \A at the beginning and \Z at the end. \ASender:\s*(.*?)\.(.*?)@(.*?)\.\w+\s*Date:\s*((\d{1,2}\.){2}\d{4})\s*Report-no.:\s*(.*)\Z [Note: the regex is wrapped due to layout reasons. All must be used as a single long line!] Subpattern 1,2,3,4 and 6 will contain the information we wanted. Problem 4. I think we have already had some practise at dividing bigger problems into smaller ones. The time-problem is another one. It should be mere routine now. And, it is much easier than it looks at first sight, because the format is fixed! Hours are from 00 to 19 and 20 to 23 (24 equals 00!!): ([01][0-9]|2[0-3]): Minutes and seconds have the same format and the same combinations of digits, 00 to 59: ([0-5][0-9]:){2} Altogether, enclosed by word boundary (\b) metacharacters: \b([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]\b ===END=== Hope you enjoyed it! :-) CU in some days! -- Best regards, Gerd == Tutorial for using PGP with TheBat! www.pro-privacy.de Fifty percent of people have a below-average understanding of statistics. now playing: WDR2 :-) Current Ver: 1.60m FAQ: http://faq.thebat.dutaint.com Unsubscribe: mailto:[EMAIL PROTECTED] Archives : http://tbudl.thebat.dutaint.com Moderators : mailto:[EMAIL PROTECTED] TBTech List: mailto:[EMAIL PROTECTED] Bug Reports: https://bt.ritlabs.com
[regex-tutorial]: Part 2
Hi Batsmen, this is the second part of the regex tutorial. This time we will learn something about special meta characters which anchor the search pattern like line and word boundaries. Furthermore you will be able to use alternatives in search patterns. The third part is in preparation. To let you know what comes next in *Part 3*: it will explain quantifiers, groups, subpatterns. But let's start with part 2 which will be online soon at http://www.silverstones.com/thebat/Regex.html and www.pro-privacy.de = 4. Complex Patterns Ok, that was an easy start! But it wasn't very interesting, was it? But if simple search patterns were all that Regular Expressions offer, it wouldn't be worth a tutorial. So, there has to be more! Okay, let's get going with the more complicated stuff: 4.1 Line Boundaries Instead of having a regex look for text anywhere in the string we can force it to search in specific parts of the string. These anchored patterns have their own metacharacters: ^ and $ The circumflex ^ means that the search pattern is anchored to the start of the line; the dollar $ means that the regex will look for the pattern at the end of a line (Yes, dear experts, for now, let's take a string as one line. Ok?) Example: ^give or take This pattern will only be matched if 'give' is at the beginning of a line and is followed by 'or take'. Or: This is the end$ is only matched if it appears at the end of the line. It doesn't matter what comes first: 'This is the end' has to be the end of the line! You can use these two metacharacters to speed up the regex. I admit, it is not all that important when you use regex in TB! because you won't be working with large amounts of data. But on the other hand: it can't hurt anyone ;-) Why does the regex work faster if you use the circumflex or the dollar, you ask? Ok, let's use our example regex ^give or take on the string 'Once upon a time': the regex machine checks whether the first thing it finds is the beginning of the line. This returns TRUE. Next it checks the following character whether it is a 'g'. The search process is cancelled at once because this returns FALSE! Now what would have happened without the circumflex? The regex machine would have checked the second, third, fourth etc. character to match the search pattern, only to find out that the search pattern doesn't exist in that string. The longer the string, the more time the regex machine takes to fail ;-) 4.2 Word Boundaries But there is more that regexian offers. Word boundaries! Some people forget about this because they think there is another way to define word boundaries. Believe me, there is, but it's nowhere near as easy as this! \b makes the regex searching for the pattern at word boundaries: \bgive or take. Hey, we know this one, don't we? That is our first example again! The pattern that was found in 'You have to forgive or take the consequences!' but now won't be found thanks to the word boundary metacharacter. I remember a discussion in one of the German TB-lists where someone asked why this metacharacter is necessary, because a word could be recognized by surrounding spaces. This is not a good idea: words could end at question marks, exclamation marks, a full stop A regex like ain would indeed match 'Again a good idea' but wouldn't find 'Oh no, not again.' You can avoid that when you use \b instead. Of course, this metacharacter can be negated, as can the others: \B which means that the regex should match characters everywhere in a string other than at word boundaries. Another example should explain this: Re\B. The regex has to match the characters 'Re' as long as they are not a word boundary, followed by any other character (the dot). Now, we have the string: 'Re: or Reply:'. Try it in the regex tester. What happens? The result is 'Rep'. Replace \B by \b and the regex matches 'Re:'. Everything clear now? 4.3 Alternatives You remember the first example in this tutorial give or take? When I introduced it I made the redundant remark that this regex wouldn't match 'give' OR 'take'. Well, this remark wasn't really redundant: I needed something to start this chapter, some kind of transition bg. Because this is the chapter that explains how we can use the OR; how alternative patterns are defined. To search for alternative patterns, regexian offers a special metacharacter: it is the vertical bar or may be better known as pipe-symbol |. So, what would have been necessary to search for 'give' or 'take'? give|take. The regex checks whether it matches 'give'. If not it checks the string for 'take'. What happens if the string contains both alternatives? Well, to be honest, when I started with regex I was convinced that the first alternative in the regular expression would be matched. But no! The regex will match the alternative that comes first in the string! Let's get into details with an example: Given the regex this|the|that and the string 'the hand that signed
Re: [regex-tutorial]: Part 1
Hello Gerd, Monday, May 13, 2002, 9:37:13 PM, you wrote to TBUDL: GE You have to download a DLL written by Dirk Heiser GE (http://www.Dirk-Heiser.de/RegExTest/RegExTest_V0.3beta.zip) I am unable to get in touch with this server -- Best regards, Ottar Grimstad, Norway http://home.online.no/~ottgrims Using The Bat! 1.60h on Windows 98 version 4,10 Current Ver: 1.60k FAQ: http://faq.thebat.dutaint.com Unsubscribe: mailto:[EMAIL PROTECTED] Archives : http://tbudl.thebat.dutaint.com Moderators : mailto:[EMAIL PROTECTED] TBTech List: mailto:[EMAIL PROTECTED] Bug Reports: https://bt.ritlabs.com
Re: [regex-tutorial]: Part 1
Hello Ottar, Friday, 17.05.2002 you wrote to TBUDL: GE (http://www.Dirk-Heiser.de/RegExTest/RegExTest_V0.3beta.zip) I am unable to get in touch with this server Try this URL: http://www.Dirk-Heiser.de/RegExTest/RegExTest.zip No problem here. At the moment ;) -- Ciao, Ingrid http://www.pro-privacy.de PGP and The Bat! Regular Expressions in The Bat! Current Ver: 1.60k FAQ: http://faq.thebat.dutaint.com Unsubscribe: mailto:[EMAIL PROTECTED] Archives : http://tbudl.thebat.dutaint.com Moderators : mailto:[EMAIL PROTECTED] TBTech List: mailto:[EMAIL PROTECTED] Bug Reports: https://bt.ritlabs.com
Re: [regex-tutorial]: Part 1
Hello Gerd. At 3:37 PM on Monday, May 13, 2002 you wrote the following about [[regex-tutorial]: Part 1]: Gerd The tutorial is published on www.pro-privacy.de (look Gerd there for special) and on Marck's official FAQ at Gerd http://www.silverstones.com/thebat/FAQ.html Thanks for your efforts. I will be reading the tutorial w great interest. -- Jan Rifkinson Ridgefield, CT USA TB! V1.60c/W2K_SP2 ICQ 41116329 Current Ver: 1.60k FAQ: http://faq.thebat.dutaint.com Unsubscribe: mailto:[EMAIL PROTECTED] Archives : http://tbudl.thebat.dutaint.com Moderators : mailto:[EMAIL PROTECTED] TBTech List: mailto:[EMAIL PROTECTED] Bug Reports: https://bt.ritlabs.com
[regex-tutorial]: Part 1
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Bats(wo)men, some days ago Daniel Grunberg asked for an English version of a tutorial on regular expressions (TBTECH, mid:[EMAIL PROTECTED]) which I published on www.pro-privacy.de for the German beginners list. First thing I did was a mail to Marck to find out whether there is some interest in a translation. Well, here it is. At least the first part. Marck checked the text and transformed it into something you can read. Thank you, Marck! (My translation was something between the following text and a translation altavista did, hehe). The whole tutorial will be subdivided in five parts. It will take some time to prepare the next part, so you have to wait one or two weeks for the next part to be published. Sorry! Anyway, we decided to publish it in parts, so you can start learning regexian and you have a chance to ask questions for better understanding. Any part is posted to TBUDL using a special subject ([regex tutorial]) so that those of you who don't want to read it may define a filter to kill the mail. Please use the same prefix in your subject for any reply. The tutorial is published on www.pro-privacy.de (look there for special) and on Marck's official FAQ at http://www.silverstones.com/thebat/FAQ.html Ok, that's it. Let's start. I hope you will enjoy the tutorial :-) START OF PART 1 == 1. Introduction Whenever I came across something interesting in a mail that was created with TheBat! like cleaned Subject-strings or automagically deleted PGP-lines, I would ask in one of the mailing lists: How did you do that?. Quite often I would receive a reply like You will need a regex for that! And sometimes the result was something like: %QUOTES=%SETPATTREGEXP=(?is)(-BEGIN PGP SIGNED.*?\n(Hash:.*?\n)?\s*)?(.*?)(^(- --|--\n|-BEGIN PGP SIGNATURE)|\z)%REGEXPBLINDMATCH=%text%SUBPATT=3 This is only a simple example of those cryptic looking combinations of TB!-Macros and regular expressions which are simply called regex by the TB-experts. To me it seemed a random sequence of characters; as if a cat walked across my keyboard. Awkward, arbitrary and cryptic, that at least was my impression until Januk Aggarwal (special thanks to him) gave me a short introduction to regex at TBTECH and my workmate Alfred Rübartsch gave me a copy of Jeffrey Friedls excellent book Mastering Regular Expressions. Although I entered the fascinating world of Regular Expression with the help of these two, I am still not an expert in the regexian language. Anyway, as an advanced beginner, I have dared to write this tutorial to hopefully explain some things and give a good start in Regular Expressions to other beginners. This tutorial is meant to bring you into closer contact with the regex topic. Well, let's see how it works; let's see whether we will be able to explain the regex-example above by the time we come to the end of this tutorial. 2. Regular Expressions 2.1. What does Regular Expression mean? Regex are not only used in TB! You can find them in quite a lot of different UNIX-tools (e.g. grep), in some programming languages like PERL (Practical Extraction and Report Language, sometimes called 'Pathologically Eclectic Rubbish Lister' bg) and even my editor UltraEdit uses them. Laura Lemay wrote in her book PERL in 21 days that the term Regular Expression makes no sense at first sight (to be honest: even at second sight it still makes no sense to me), because these are not real expressions and furthermore no one really can explain why they are regular! Well, let's ignore this; let's simply accept that the term Regular Expression has its origin in formal algebra and that they are indeed part of Mathematics. The easiest and most convenient way to define Regular Expression is to say: They are search patterns to match characters in strings. Those of you who have tried to find files using the DOS command line or the search function in the Explorer may have used patterns like: dir *.doc copy *.??t c:\temp These examples show patterns that consist of letters, stars, question marks and other characters to define which files should be listed or copied. In the first example only files that have the suffix doc should be listed. In the second example only files that have a three-letter suffix and a t as last character in the suffix should be copied. But these regex are merely wildcards! In no way as mighty as Regular Expressions. One can't compare them to real regex, which offer much more than wildcards for characters. 3. Simple Patterns To explain some regular expressions and to understand the examples given in this tutorial we have to define how the regex will appear. I will envelope the regular expression in quotation marks (). If you want to test the regex you will have to copy the part between the -characters. Testing regular expressions? Yes, sure, this is possible. You have to download a DLL written by Dirk Heiser (http://www.Dirk
Re: RexEx Tutorial, where ?
Hi Stefano, On Thursday, January 11, 2001, Stefano Zamprogno wrote: SZ As subj say, where can i find a tutorial-manual about that ? SZ Thanks. You can request the tutorial that Nick mentioned from my computer in PDF-Format. send an email to: mailto:[EMAIL PROTECTED]?subject=VIMRegEx -- Cheers, Marcel... PGP Key ID: 0xADB5413E PGP Key: mailto:[EMAIL PROTECTED]?Subject=SendPGPKey ... Cat: This sounds like a twelve-change-of-underwear trip! ((C) Red Dwarf, "Terrorform") Using TB! v1.48f on Windows 95 4.0 Build -- -- View the TBUDL archive at http://tbudl.thebat.dutaint.com To send a message to the list moderation team double click here: mailto:[EMAIL PROTECTED] To Unsubscribe from TBUDL, double click here and send the message: mailto:[EMAIL PROTECTED] -- You are subscribed as : archive@jab.org
RexEx Tutorial, where ?
Ciao The, As subj say, where can i find a tutorial-manual about that ? Thanks. -- eMail : [EMAIL PROTECTED] - [EMAIL PROTECTED] eMail su cellulare: [EMAIL PROTECTED] WEB : http://www.zamprogno.com - http://www.zamprogno.it ICQ : 3813299 Per vedere un orologiaio al lavoro vai a: To see a watchmaker at work go to: http://www.edisons.it/time/cam/webcam.htm -- -- View the TBUDL archive at http://tbudl.thebat.dutaint.com To send a message to the list moderation team double click here: mailto:[EMAIL PROTECTED] To Unsubscribe from TBUDL, double click here and send the message: mailto:[EMAIL PROTECTED] -- You are subscribed as : archive@jab.org
Re: RexEx Tutorial, where ?
On January 11, 2001, at 7:32:35 AM, Stefano Zamprogno Wrote: SZ As subj say, where can i find a tutorial-manual about that ? SZ Thanks. I have the following page set aside for reading, but haven't as yet found the time to read it: http://physlab.sci.ccny.cuny.edu/%7Eorycc/vim-regex.html Nick N.J. Andriash [ TB! v1.49 | PGP 7.0.2 | Win 98 SE ] Vancouver, B.C. Canada | PGP Key ID: 0x7BA3FDCE -- -- View the TBUDL archive at http://tbudl.thebat.dutaint.com To send a message to the list moderation team double click here: mailto:[EMAIL PROTECTED] To Unsubscribe from TBUDL, double click here and send the message: mailto:[EMAIL PROTECTED] -- You are subscribed as : archive@jab.org
Regular Expressions Tutorial
Hello All, Here's a little tutorial on regular expressions that a fellow did for Gravity users, if anyone is interested. http://www.naplesfl.net/~tbates/gravity/reg-100.html -- Paula Ford The Bat! 1.36 (reg) Windows 95 4.0 Build 950 -- -- View the TBUDL archive at http://tbudl.thebat.dutaint.com To send a message to the list moderation team double click here: mailto:[EMAIL PROTECTED] To Unsubscribe from TBUDL, double click here and send the message: mailto:[EMAIL PROTECTED] --
Re: Regular Expressions Tutorial
Wednesday, December 01, 1999, 10:09:22 PM, Paula wrote: Here's a little tutorial on regular expressions that a fellow did for Gravity users, if anyone is interested. http://www.naplesfl.net/~tbates/gravity/reg-100.html Just wanted to point out that it is good for the general concepts but since regexp syntax can vary from one implementation to the next other than explaining the basic concept of regexp I doubt it would be of much use. -- Steve C. Lamb | I'm your priest, I'm your shrink, I'm your ICQ: 5107343 | main connection to the switchboard of souls. ---+- -- -- View the TBUDL archive at http://tbudl.thebat.dutaint.com To send a message to the list moderation team double click here: mailto:[EMAIL PROTECTED] To Unsubscribe from TBUDL, double click here and send the message: mailto:[EMAIL PROTECTED] --