Hello Silviu,
Historians believe that Friday, September 14, 2001 at 13:03 GMT +0300
was when, Silviu Cojocaru [SC] typed the following:
SC> ^(R[Ee](\[?[1-9]?\]?):[ ]?|F[Wv]d?:[ ]?)(.*)$
SC> Well the downside that I found is that will match [x] after Re
SC> until it gets to something like Re[9]: nothing beyond that. If I
SC> found that I need it to go over 9 I'll fix the regexp.
Looks pretty good. You can make it a little more readable if you
change just a few things.
1. Add (?i) to the beginning and change the following:
a) [Ee] -> e
b) [Wv] (typo?) -> w
2. Change [ ] to \s*
3. Change [1-9]? to \d* (it does the same thing, plus it solves the
problem you mentioned above.)
4. Add a repeat operator to the Subpatt 1.
If you do those changes, here is what it will look like
(?i)^(Re(\[\d*\])?:\s*|Fwd?:\s*)*(.*)$
Also, don't use the %OSUBJ macro, use the %OFULLSUBJ macro. The
%OSUBJ and %SUBJ macros are supposed to strip out the Re: and Fwd:
automatically, but they seem to be a little buggy on my machine.
SC> And a big thanks to Januk for helping me.
No problem. Good luck!
--
Thanks for writing,
Januk Aggarwal
Using The Bat! 1.54 Beta/8 under Windows 98 4.10 Build 2222 A
If you throw a cat out of the car window, does it become kitty litter?
--
______________________________________________________
Archives : http://tbtech.thebat.dutaint.com
Moderators : mailto:[EMAIL PROTECTED]
Unsubscribe: mailto:[EMAIL PROTECTED]