Dear Jacopo,

@29-Mar-2004, 18:49 +0200 (29-Mar 17:49 UK time) Jacopo Ognibene
[JO] in mid:[EMAIL PROTECTED] said to Marck:

MDP>> %IF:"%ABtoGender"="0":"Spett.le":"Egr." %-
MDP>> %SETPATTREGEXP="(.*)( - .*)?"%-
MDP>> %REGEXPBLINDMATCH="%ABTOLASTNAME='%TOLNAME'"%-
MDP>> %SUBPATT(1)

JO> Yes, finally I got my last running version:

JO> %IF:"%ABtoGender"="0":"Spett.le %ABTONAME":"Egr." %ABTONAMESUFFIX %-
JO> %SETPATTREGEXP="(.*) - .*?"%-
JO> %REGEXPBLINDMATCH="%ABTOLASTNAME='%TOLNAME'"%-
JO> %SUBPATT(1)

JO> Don't Know why the brackets in ( - .*)? are useless, but it's running
JO> well.

They are important if you have any records without either "- work"
or "- home" at the end. Then the expression will fail to match
completely and result in a blank name. My version is the one to use.

-- 
Cheers -- //.arck D Pearlstone -- List moderator
TB! v2.05 Beta/12 on Windows XP 5.1.2600 Service Pack 1
'

Attachment: pgp00000.pgp
Description: PGP signature

________________________________________________
Current version is 2.04.7 | 'Using TBUDL' information:
http://www.silverstones.com/thebat/TBUDLInfo.html

Reply via email to