I think that I would still include the \s* after the \] in the regexp,
because this will also remove any spaces following it....
Ricky
-----Original Message-----
From: Jym Dyer [mailto:jym(_at_)econet(_dot_)org]
Sent: Thursday 28 February 2002 4:07 PM
To: mhonarc(_at_)ncsa(_dot_)uiuc(_dot_)edu
Subject: Re: Removeing RE and Prefix
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.
=v= This is the right way to go, as it parallels the prevailing
use of subject line keywords such as "[sftest]". Generally the
mailing list software will insert it at the front (or after an
initial "Re: "), but only after doing a very simple search to
see whether the string is any part of the subject line. That
lets it deal with stuff like:
Re: Fwd: Re[2]: Fwd: Re: [sftest] ME TOO!
without throwing "[sftest]" in there four more times.
<_Jym_>