Re: Regex to clean up subject

2015-08-31 Thread Geoff Lane
Using The Bat! 5.8.8 on Windows Vista Build 6002

On Monday, August 31, 2015, 4:04:44 AM, Rick Grunwald wrote:

> Someone  once gave me an excellent regular expression that would clean
> up the subject of things like [this] and {that}

> I lost it along with all my mail in a hard drive crash

> If someone has it, could you kindly repost it?

Many years ago, Marck Pearlstone sent me the following to clean up
subject lines:

%subject="Re: 
%setpattregexp=""(?i)\A\:?(\s*\[.*\])?(\s*(re|ha|rcpt|fwd|fw)(\[\d*\])?:\s*)*(.*)""%RegExpBlindMatch=""%OSubj""%SubPatt=""5"""Hi
 %OFROMFNAME,

However, for most purposes, the %singlere macro does an excellent job
with significantly less fuss!

HTH,

-- 
Geoff Lane
Cornwall, UK


---
This email is free from viruses and malware because avast! Antivirus protection 
is active.
https://www.avast.com/antivirus



Current version is 6.6 | 'Using TBUDL' information:
http://www.silverstones.com/thebat/TBUDLInfo.html


Re: Regex to clean up subject

2015-08-31 Thread Fred
> Marck Pearlstone has a library of useful macros at 
> .

Unfortunately, right now I got "Warning: mysql_connect()
[function.mysql-connect]: Access denied for user 'marck'@'80.229.140.13'
(using password: YES) in D:\Data\wwwroot\cgi\library.php on line 28 Unable
to open db: Access denied for user 'marck'@'80.229.140.13' (using password:
YES)".

-- 
Fred

Using TheBat V.4.2.44.2 for POP3 mail with Windows 7 Service Pack 1



Current version is 6.6 | 'Using TBUDL' information:
http://www.silverstones.com/thebat/TBUDLInfo.html


Re: Regex to clean up subject

2015-08-31 Thread MFPA
Hi


On Monday 31 August 2015 at 8:29:36 AM, in
, Geoff Lane wrote:




> Many years ago, Marck Pearlstone sent me the following
> to clean up subject lines:

> %subject="Re:
> %setpattregexp=""(?i)\A\:?(\s*\[.*\])?(\s*(re|ha|rcpt|fwd|fw)(\[\d*\])?:\s*)*(.*)""%RegExpBlindMatch=""%OSubj""%SubPatt=""5"""Hi
> %OFROMFNAME,



Marck Pearlstone has a library of useful macros at 
.



-- 
Best regards

MFPA  

Virtual workspace, Virtual Office, Virtual Job

Using The Bat! v4.0.38 on Windows XP 5.1 Build 2600 Service Pack 3 



Current version is 6.6 | 'Using TBUDL' information:
http://www.silverstones.com/thebat/TBUDLInfo.html