Hello Ricardo, On Tuesday, August 13, 2002 at 10:13:10 PM you [RMR] wrote (at least in part):
RMR> 1. How can I fix the regex to catch this message correctly? RMR> 2. Isn't it illegal to have an EOL inside the From: clause? No. Header start (spoken in RegExp) with '^\w[.*?]:' and end immediately before the next string matching this pattern. So you could have a 3 or 4 liner header field w/o being illegal. This brings me to the answer of '1.': %REGEXPTEXT="(?ism)^From:\s*.*?([^\s]+@[^\s]+)\s+.*^\w.*?:" This will extract only the e-mail-address, as I don't know if The Bat! converts the QP or B64 encoded name correctly or if it 're-encodes' that string a second time, or if it leaves it I don't know if recipient MUA displays it correctly. This RegExp worked with the QP encoded string you provided in multi or single line mode the same as it worked with a 'normal' string ... Hope it does for you too. -- Regards Peter Palmreuther (The Bat! v1.61 on Windows 2000 5.0 Build 2195 Service Pack 1) Brain fried -- Core dumped ______________________________________________________ Archives : http://tbtech.thebat.dutaint.com Moderators : mailto:[EMAIL PROTECTED] Unsubscribe: mailto:[EMAIL PROTECTED]
