Hello [EMAIL PROTECTED] !
On Sun, 5 May 2002 14:41:19 +0400 GMT your local time,
which was 05.05.2002, 12:41 (GMT+0200) where I live, you wrote:
> \A #This is just beginning of the line, why not "^" ???
Beginning of string
> \:? #What is this ???
The ? is a quantifier which says "the character before may appear once
or not" In this case the ":" could exist or not to match the string
> (
> \s* #This is whitespace
As number of whitespaces or none at all.
> (reply|subject|re|ha|rcpt|fwd|fw) #These are actual search strings
Alternations! Each "|" is similar to "OR"
> (\[\d{1,3}\]) #These are any digits in square brackets
This is a quantifier again: the digit has to appear one to maximum
three times in square brackets.
> ?: #What is this ???
This was related to the part (\[\d{1,3}\]). This part may appear once
or not at all.
> \s* #This is white space again
See above ;-)
> | #This is "or", but what does it relate to: "?:" | "\["
> or some bigger portions of the expression ???
It is related to
(\s*(reply|subject|re|ha|rcpt|fwd|fw)(\[\d{1,3}\])?:\s*
OR
\[.*?\])
> \[.*?\]) #Does this mean anything within square brackets
> ??? What is the purporse of specifying the actual search
> strings above ?
It means anything in square brackets. It is used in case someone has
an alternative string instead of reply a.s.o.
> *\s*(.*?) #These are strange and look almost the same:
> white space followed by any character - why not just the
> second portion ???
The first * belongs to the alternation above, which means: the
alternation contents may appear once or more or never! Followed by any
number of whitespaces even none. Followed by anything: this anything
is the original "clean" subject we want to have. If you count the "("
except the first in (?i) it must give four. And you will see later
something called %SUBPATT="4"
> \Z"" #This is just the end of line
End of string! This is not the end of a line in multiline mode. FYI
HTH
(may be I didn't see everything. Apologies if so :-/)
--
Best regards,
Gerd
=======================================================
Tutorial for using PGP with TheBat! www.pro-privacy.de
-------------------------------------------------------
Clarvoiants meeting canceled due to unforseen events.
-------------------------------------------------------
now playing: WDR2 :-)
______________________________________________________
Archives : http://tbtech.thebat.dutaint.com
Moderators : mailto:[EMAIL PROTECTED]
Unsubscribe: mailto:[EMAIL PROTECTED]