[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Removeing RE and Prefix



Birger Mortensen <birger@sf.dk> said:

> Is there a way to remove old prefix'es ?
> I am using :
> 
> <SUBJECTSTRIPCODE>
> s/^\[sftest\]://;
> </SUBJECTSTRIPCODE>

Try:

  s/\[sftest\]//;

The regular expression you're using requires that the "[sftest]" be
the first thing in the subject and must be followed by a colon.

The regular expression I specify removes those requirements

Simeon
> 
> 
> 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
> 



-- 
If you're not outraged, you're not paying attention



[Index of Archives]     [Bugtraq]     [Yosemite News]     [Mhonarc Home]