Re: Regex Problem
Dirk Heiser [EMAIL PROTECTED] wrote: [...] ONELINE %SUBJECT="%SETPATTREGEXP=""(?i)\A(?:(?:\s*(?:fwd|re|aw|fw|antwort|wg|forw)(?:\[\d*\])?:\s*)|(?:\s*\[(?:Palm|palmcomp)\]\s*))*(.*?)(?:(?:\s*\((?:was|war):.*\)\s*)|(?:\(PGP Decrypted\)))*\z""%REGEXPMATCH=""%OSUBJ""" /ONELINE Put ":?\s*" (without the quotation marks) right after "(?i)\A". [...] Is the a Bug in TB! or is there a Problem with my Regex (different default settings)? I think the change will help, but I don't know if it's a TB or a Regexp related problem... -- Christian Gassmann The Bat! 1.48 Beta/1 under Windows NT 4.0 Service Pack 6, RC 1.5 -- -- 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: Regex Problem
Hello Dirk On Wed, 1 Nov 2000 00:31:49 +0100, Dirk Heiser wrote: DH To Clean up Subjects like this: DHAntwort: [Palm] Re: [Palm] fwd: [palm] re: new Subject (was: old s) DH(yes i really received Subjects like this :-) ) DH To this: DHRe: new Subject DH I used one of the Regex i found here and tryed to modify it. [snip] DH This all work fine for all cases i tryed, but if i use a Subjekt like DHFwd: Test DH I get DH Re: : Test DH ^^ DH I only have this Problem if the Subjekt contain a "Fwd", all other DH Prefixes work fine. DH Is the a Bug in TB! or is there a Problem with my Regex (different DH default settings)? I noticed this strange extra colon with Fwd: too, but i didn't investigate until now... It's a problem with TB. When the original subject contains "Fwd:", the colon is not stripped but when the subject contains "Re:", then the colon is stripped... All you have to do is insert "(\:\s*)?" just after the RegExp options and increment the %SubPatt. Below you find an example that seems to work (but it doesn't do all the fancy things your RE does - it does not strip the "(was:...)" part of the subject). onelongline %subject="Re: %SETPATTREGEXP='(?i)(\:\s*)?(((Re|Aw|Antwort):|\[(Palm|palmcomp)\])\s*)*(.*)'%REGEXPBLINDMATCH='%OSUBJ'%SUBPATT='6'" /onelongline BTW: could anybody using S/MIME please tell the exact string inserted by TB when decrypting? Now the RE just removes the "(PGP Decrypted)" suffix... Regards Peter -- Peter Steiner [EMAIL PROTECTED] -- -- 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: Regex Problem
On Wed, 1 Nov 2000 10:39:30 +0100, I wrote: PS onelongline PS %subject="Re: %SETPATTREGEXP='(?i)(\:\s*)?(((Re|Aw|Antwort):|\[(Palm|palmcomp)\])\s*)*(.*)'%REGEXPBLINDMATCH='%OSUBJ'%SUBPATT='6'" PS /onelongline PS BTW: could anybody using S/MIME please tell the exact string inserted PS by TB when decrypting? Now the RE just removes the "(PGP Decrypted)" PS suffix... Oops, i got the wrong RE, it doesn't remove the Decrypted part. Try this one: onelongline %subject="Re: %SETPATTREGEXP='(?i)(\:\s*)?(((Re|Aw|Antwort):|\[(Palm |palmcomp)\])\s*)*(.*)(\s\((PGP |)?Decrypted\))?$'%REGEXPBLINDMATCH='%OSUBJ'%SUBPATT='6'" /onelongline Regards Peter -- Peter Steiner [EMAIL PROTECTED] -- -- 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: Regex Problem
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello Peter Steiner ! On Wed, 1 Nov 2000 10:39:30 +0100 GMT your local time, which was 01.11.2000, 10:39 (GMT+0100) where I live, you wrote: [...] BTW: could anybody using S/MIME please tell the exact string inserted by TB when decrypting? Now the RE just removes the "(PGP Decrypted)" suffix... Well, once the message is decrypted the following text is shown in the subject field: "... (S/MIME Decrypted)". But there is no decrypted copy created as it is when you decrypt a pgp-encrypted message. At least, I couldn't find one! HTH - -- Best regards, Gerd == Using The Bat! Version 1.47 Halloween Edition - PGP-Keys on request mailto:[EMAIL PROTECTED]?subject=send_key - A living dog is better than a dead lion. -BEGIN PGP SIGNATURE- Version: PGP 6.5.8 Comment: Digitally signed for authentication purposes ! Gerd Ewald iQA/AwUBOf/aP0y/sHrVbGGHEQI4FACePfq3FsknG+BB/zJyW+ckh4SGV/UAoO4E ubUuCKKWZStEw9vjQP+nXkf/ =LNoe -END PGP SIGNATURE- -- -- 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: Regex Problem
Peter Steiner [EMAIL PROTECTED] wrote: PS BTW: could anybody using S/MIME please tell the exact string PS inserted by TB when decrypting? Now the RE just removes the "(PGP PS Decrypted)" suffix... Oops, i got the wrong RE, it doesn't remove the Decrypted part. Try this one: onelongline %subject="Re: %SETPATTREGEXP='(?i)(\:\s*)?(((Re|Aw|Antwort):|\[(Palm |palmcomp)\])\s*)*(.*)(\s\((PGP )?Decrypted\))?$'%REGEXPBLINDMATCH='%OSUBJ'%SUBPATT='6'" /onelongline Instead of "(PGP )?" use ".{3,6} " (as always w/o quotation marks). HTH -- Christian Gassmann The Bat! 1.48 Beta/1 under Windows NT 4.0 Service Pack 6, RC 1.5 -- -- 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: Regex Problem
Hi Dirk, :-) On Wed, 1 Nov 2000 00:31:49 +0100, you wrote: [Subject Cleaning Regex] DH This all work fine for all cases i tryed, but if i use a Subjekt like DHFwd: Test DH I get DH Re: : Test DH ^^ Thank for all replaying to this. The ":?\s*" Work around Work fine. Now i am using this Regex for my Replays: one line %SUBJECT="%SETPATTREGEXP=""(?i)\A(?::?\s*)(?:(?:\s*(?:fwd|re|aw|fw|antwort|wg|forw)(?:\[\d*\])?:\s*)|(?:\s*\[(?:Palm|palmcomp)\]\s*))*(.*?)(?:(?:\s*\((?:was|war):.*\)\s*)|(?:\((?:PGP|S/MIME) Decrypted\)))*\z""%REGEXPMATCH=""%OSUBJ""" /one line This work fine in all cases for me. I found out that the Problem that need this Work around are a Bug in the %SUBJ and the %OSUBJ Macros. If the Subject Contain a "Fwd:" this Macros return _not_ a Valid result. i.e. a Subject Like "Fwd: Test" Return ": Test". cu, Dirk -- Using The Bat! 1.48 Beta/1 (S/N 12A1F196 / Educational) under Windows 95 4.0 Build B -- -- 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
Regex Problem
Hi there, To Clean up Subjects like this: Antwort: [Palm] Re: [Palm] fwd: [palm] re: new Subject (was: old s) (yes i really received Subjects like this :-) ) To this: Re: new Subject I used one of the Regex i found here and tryed to modify it. I use a Quick Template Named "INC_MYSUBJEKT" that contain this: ONELINE %SUBJECT="%SETPATTREGEXP=""(?i)\A(?:(?:\s*(?:fwd|re|aw|fw|antwort|wg|forw)(?:\[\d*\])?:\s*)|(?:\s*\[(?:Palm|palmcomp)\]\s*))*(.*?)(?:(?:\s*\((?:was|war):.*\)\s*)|(?:\(PGP Decrypted\)))*\z""%REGEXPMATCH=""%OSUBJ""" /ONELINE In my Replay Templates i use: %QINCLUDE="INC_MYSUBJEKT"%SUBJECT="Re: %SUBJ" or %QINCLUDE="INC_MYSUBJEKT"%SUBJECT="Re: [Palm] %SUBJ" in the Mailing List (inserting this [Palm] Prefix) Templates This all work fine for all cases i tryed, but if i use a Subjekt like Fwd: Test I get Re: : Test ^^ I only have this Problem if the Subjekt contain a "Fwd", all other Prefixes work fine. If i try this Regex with another Program (XNews) that use also Regular Expresions this Regex work fine with cutting of the "Fwd" String. Is the a Bug in TB! or is there a Problem with my Regex (different default settings)? cu, Dirk -- The Bat! (1.48 Beta/1) Educational [12A1F196] OS: Windows 95 4.0 Build B -- -- 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