Hello Silviu,

On Friday, October 12, 2001 at 5:39:28 PM you wrote (at least in part):

SC> Well actually, you could just post the "raw" regexp Peter.
I'll do so :-)
...
SC> In my view, a simple regex won't solve this

Why not?

in perl ($otolist equals the result '%OTOLIST' in TB! would output!):

$otolist =~ /.*[\s,;]*(.*[email protected]).*/i;
$sent_to = $1

the first line has to be this kind of '%SETPATTREGEXP' TB! uses and the
second line seems to me like similar to '%REGEXPBLINDMATCH' plus
'%SUBPATT'.

the shorter perl style would be

($sent_to = $otolist) =~ s/.*[\s,;]*(.*[email protected]).*/$1/i;

Both perl script parts are _untested_ and _from memory_ but should work (at
least with light modifications *g*).
As Micha wrote it is enough to find at least the _first_ occourance of an
e-mail-address belonging to his domain this should work without scripting /
looping functions. If he needs to expand this to catch _all_ addresses
matching his domain of course this can only be done with loops for counting
matched sub-patterns.

Ciao Pit
-- 
Regards
Peter Palmreuther                            mailto:[EMAIL PROTECTED]
(The Bat! v1.54/10 on Windows NT 5.0 Build 2195 Service Pack 2)


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

Reply via email to