-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi Gerd, On 10 March 2001 at 09:31:47 +0100 (which was 08:31 where I live) Gerd Ewald wrote to Marck D. Pearlstone at TBTECH and made these points: >> %TO=""%To="%SETPATTREGEXP='^Email:\s(.*)\n'%REGEXPBLINDMATCH='%text'%SUBPATT='1'" GE> Question: is the (.*) not too greedy, so that it could match the GE> very last \n in the text and not that one just behind the GE> email-adress? Not in this case (it didn't when I tested it). Even if it does, since the extracted address is being used to assign in a %TO= the result is truncated at any capture \n. GE> (I just started to read about greedy and non-greedy patterns<g> GE> Please CMIIW). You may be right, I only tested it as far as "working right in context" and left it at that. GE> May I suggest an improvement to make sure that an email adress GE> will be matched: GE> (?i)^Email:\s?(\S+@\S+\.\S+)\ While this is true, the original specification stated a fixed format line in which the only thing between "Email: " and "\n" was an email address. GE> This would ignore case; there maybe one or no whitespace behind GE> "Email:"; the text behind the whitespace has to look like an email GE> address (more or less:-)). GE> Is that a possible way?? It doesn't cater for multiple sub-domains - as in [EMAIL PROTECTED] (a free email address I have). The PCRE_CASELESS is, I think, the default and actually not wanted since the 'Email' has an upper case 'E' at the front. So I would say that: (?U-i)^Email:\s?(\S+@(\S+\.)+\S+)[\s\n] makes a better version by far. It works too! :-). - -- Cheers -- .\\arck D. Pearlstone -- Moderator TBUDL / TBBETA / TBTECH ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [ PGP Key ID: 0x929DCDA0 | www: http://www.silverstones.com ] [ Any opinions are my own and not those of RIT labs ] TB! v1.52 Beta/1 S/N 14F4B4B2 on Windows NT 5.0 Build 2195 Service Pack 1 -----BEGIN PGP SIGNATURE----- Version: 6.5.8ckt (build 04) Comment: PGP Sealed for freshness iQA/AwUBOqoSnznkJKuSnc2gEQK3qgCfd6swPWhClz3HL31pZwIpNlEko/8AnR91 Ndy71nW9z9zoRe+CFESpvEgq =Qv9n -----END PGP SIGNATURE----- -- ______________________________________________________ Archives : <http://tbtech.thebat.dutaint.com> Moderators : <mailto:[EMAIL PROTECTED]> Unsubscribe: <mailto:[EMAIL PROTECTED]> You are subscribed as : [email protected]
