On Sun, 19 Dec 1999 20:57:15 +0200, Max Masyutin wrote:
PS>> %subject=""%subject="Re:
%SETPATTREGEXP=""(?i)((Re|Aw)\:\s*)*(.*?)(\s\(Decrypted\))?$""%REGEXPBLINDMATCH=""%OSUBJ""%SUBPATT=""3"""
> Nice but why not to use lookahead positive assertions?
Well, i've no experience with lookahead and lookbehind assertions,
but you made me look into the help file...
> (?=Re|Aw) instead of (Re|Aw) and so on for Decrypted.
> It will save from using additional %SUBPATT= macro,
> %REGEXPBLINDMATCH= will be replaced to %REGEXPMATCH.
If i understood these assertions correctly, the RE would look
roughly like:
%SETPATTREGEXP="(?i)(?<=((Re|Aw):\s*)*)(.*?)(?=(\s\(Decrypted\))?)$"%REGEXPMATCH="%OSUBJ"
But this gives the following error
*** Error: lookbehind assertion is not fixed length ***
which sounds reasonable, as there can be an unknown number of
repetitions.
Can this really be done with assertions?
Peter
--
Peter Steiner <[EMAIL PROTECTED]> PGP-ID 0x02850F53 (DH/DSS)
PGP Fingerprint 68AB D08E D995 41B4 C6FD 639D 9B94 D249 0285 0F53
"Schtill! Was ziberlet dert n�bem Tobel�hli
z grachtige n uuf u aab?" - Franz Hohler
--
--------------------------------------------------------------
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]>
--------------------------------------------------------------