On Wednesday, September 26, 2001 at 00:06 GMT -0700, a creature
mimicking Januk Aggarwal [JA] wrote:

R>> Works fine, except that my email id is also get included which is
R>> avoidable. My id gets included even when communication is one -
R>> one.

JA> You could try a regular expression like:

JA> %TO='%SETPATTREGEXP=''^(.*?)[,;]?\s*$''%-
JA> %REGEXPMATCH=''%-
JA> 
%SETPATTREGEXP="^(.*?[,;]?)([^,;]*([EMAIL PROTECTED]|[EMAIL PROTECTED])[^,;]*[,;]?)(.*)$"%-
JA> %REGEXPBLINDMATCH="%OTOLIST, %OCCLIST"%-
JA> %SUBPATT="1"%SUBPATT="4"'''

Here is a second option.  I think this one will work better in most
cases:

%TO="%SETPATTREGEXP='(?i)^(.*?)[,;]?([^,;]*([EMAIL PROTECTED])[^,;]*)'%-
%REGEXPBLINDMATCH='%OTOLIST, %OCCLIST'%-
%SUBPATT='1'"%-
%TO="%SETPATTREGEXP='(?i)([^,;]*([EMAIL PROTECTED])[^,;]*[,;]*)(.*)$'%-
%REGEXPBLINDMATCH='%OTOLIST, %OCCLIST'%-
%SUBPATT='3'"
%IF:'%-
%SETPATTREGEXP="(?i)([EMAIL PROTECTED])"%-
%REGEXPMATCH="%OTOLIST%OCCLIST"'='':'%-
%TO="%OTOLIST"%TO="%OCCLIST"'%-

JA> Just replace my addresses with your address(es) in the form:
JA> ([EMAIL PROTECTED]|[EMAIL PROTECTED]|[EMAIL PROTECTED]|...)

-- 
Thanks for writing,
 Januk Aggarwal

Using The Bat! 1.54 Beta/8 under Windows 98 4.10 Build 2222 A

If you throw a cat out of the car window, does it become kitty litter?


-- 
______________________________________________________
Archives   : http://tbtech.thebat.dutaint.com
Moderators : mailto:[EMAIL PROTECTED]
Unsubscribe: mailto:[EMAIL PROTECTED]

Reply via email to