Hi Januk,
B From: Joe Blow [EMAIL PROTECTED]
JA I'm assuming there is always a name portion for the following. If
JA that is not true, we can work around it, but it means using a more
JA intimidating looking macro.
JA For the name, use:%REGEXPTEXT='(?i-s)\sFrom:\s*\(.*?)\'
JA For the address, use: %REGEXPTEXT='(?i-s)\sFrom:.*?\(.*?)\'
Neither of these works for me. In trying to read them, I get,
(?i-s) = Turn on caseless, turn off dot matching newline.
\s = any whitespace character
From:
\s = any whitespace char
*\ = 0 or 1 chars
(.*?) = 0 or 1 instances of anything
\ = must have
The first line of the e-mail being replied to can any one of:
From: Vinnie [EMAIL PROTECTED] or
From: Vinnie Smith [EMAIL PROTECTED] or
From: Vinnie [EMAIL PROTECTED]
From: Vincent Q. Smith [EMAIL PROTECTED]
The only consistent element is the address which appears to always be
formatted the same.
In your example, it looks like the first char is optional but the
second is not. Then there is the whitespace in front of the word
From:. I tried changing those but it had no effect. The regex
produces nothing.
I'm trying to understand this stuff but it's tough on the brain. ;-)
--
Tom G.
http://blarp.com -- Free tech support
The Bat 1.61 - Windows 2000
__
Archives : http://tbtech.thebat.dutaint.com
Moderators : mailto:[EMAIL PROTECTED]
Unsubscribe: mailto:[EMAIL PROTECTED]