Hi there!
On 17 Dec 99, at 10:16, Thomas Fernandez wrote
about "Re[2]: re's and regexp's":
> OK, let's see.
Let's:-)
> PS> %SETPATTREGEXP="(?i)((Re|Aw)\:\s*)*(.*)"
> PS> %REGEXPBLINDMATCH="%OSUBJ"
> PS> Re: %SUBPATT="3"
>
> I will trust you on this, as I haven't fully understood the RegExp
> syntax yet.
Peter is absolutely right here, you may trust him:-)
> PS> Lets make a QuickTemplate and name it strip-re-intl; it gives you
> PS> (in the message body): "Re: (original subject without re and aw's)"
>
> Correct logic.
Sure.
> PS> But this works not for the Subject line, unless somebody can tell
> PS> how to nest quotes. The normal way to replace the subject of a
> PS> message is
>
> PS> %SUBJECT=""%SUBJECT="Re: (This was the original subject)"
>
> Not quite. In Z notation, what you want is:
<snipped what in Russian we call "����� ���� �� �������",
although I have no idea how this might be translated:-(>
> where Replyparam is "Re", "Aw" or "AW". Note that the original subject
> has to be stripped off the original reply parameter. I trust that your
> RegExp above has this "or" function and gives you the correct result.
> However, Alex said before that RegExp's cannot replace, only find. I
> don't know anything about this.
What Peter's macro does is exactly "finding", not replacing. It
_finds_ the part of the subject that follows any kind of string of
the sort "Re: AW: RE: Re: AW: aw:" or similar. After it finds it,
it *stores* the result (that is, the significant part of the subject
string) as the register %SUBPATT="3".
> You have put the whole of what has to be done into the QT. Your
Actually, I don't think you have. In my understanding, it should
be something like
%SUBJECT=""%SUBJECT="Re: %SUBPATT="3""
This ought to work, if it doesn't, it's a bug in TB and deserves a
formal bug report.
> If it does not work, check the RegExp.
RegExp works all right:-)
--
SY, Alex
(St.Petersburg, Russia)
http://mph.phys.spbu.ru/~akiselev
---
Thought for the day:
A 100% right of return both ways.
---
PGP public keys on keyservers:
0xA2194BF9 (RSA); 0x214135A2 (DH/DSS)
fingerprints:
F222 4AEF EC9F 5FA6 7515 910A 2429 9CB1 (RSA)
A677 81C9 48CF 16D1 B589 9D33 E7D5 675F 2141 35A2 (DH/DSS)
---
--
--------------------------------------------------------------
View the TBUDL archive at http://tbudl.thebat.dutaint.com
To send a message to the list moderation team double click here:
<mailto:[EMAIL PROTECTED]>
To Unsubscribe from TBUDL, double click here and send the message:
<mailto:[EMAIL PROTECTED]>
--------------------------------------------------------------