Well, you could try one of the following regexps:

s/\[sftest\]\s+//;
        This will remove the first '[sftest]' in the subject (even if not at
        the start of the subject line)
s/^\s*(Re:\s?)?\s*\[sftest\]\s+/$1/;
        This will remove '[sftest]' following a 'Re:' followed by any number of
whitespaces at the beginning of a string...

HTH,
Ricky

-----Original Message-----
From: Birger Mortensen [mailto:[EMAIL PROTECTED]]
Sent: Thursday 28 February 2002 1:36 PM
To: [EMAIL PROTECTED]
Subject: Removeing RE and Prefix


Is there a way to remove old prefix'es ?
I am using :

<SUBJECTSTRIPCODE>
s/^\[sftest\]://;
</SUBJECTSTRIPCODE>


But it don't get subjects like this one :Re: [sftest] Hmm Og var til denne
via WEB
I have a test setup at http://mail.sf.dk/MHonArc/SFtest/

Im using MhonArc 2.5.1 on a ezmlm arkive

Birger Mortensen

Reply via email to