Re[2]: inserting email domain when QT is activated

2015-06-04 Thread bunker
Try adding a hyphen in the pattern (not tried by me)

%SetPattRegexp="^.*@([a-zA-z0-9.]*)>?$"%-

to

%SetPattRegexp="^.*@([a-zA-z0-9-.]*)>?$"%-

++

Tony,

that was magic!! thanks a lot, working perfectly
appreciated

-- 
vernon



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


Re[2]: inserting email domain when QT is activated

2015-06-04 Thread bunker
> thank you, any one out there can assist me Plse
> FYI, the TO field will have only a single email id.
Try this:

%BCC=""%-
%SetPattRegexp="^.*@([a-zA-z0-9.]*)>?$"%-
%RegexpBlindMatch="%TO"%-
%VAR1=%SubPatt="1"%-
%BCC="management@%VAR1, accounts@%VAR1"%-
Dear  



hi tony,

works like a charm BUT observed that if the domain got a "-" in
between your code does not work.
EG: "aaabbb.com" works perfectly BUT if it's like "aaa-bbb.com" then
it does not show the domain at all. it just shows management@,
accounts@ in the BCC field.

hope you can fix this one. many thanks

-- 
vernon



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


Re[2]: inserting email domain when QT is activated

2015-06-03 Thread bunker
On Wednesday 3 June 2015 at 10:41:49 AM, in
, bun...@eagle-mar.com
wrote:


> hello friends,

> i have this QT called AA, an acknowledgment QT prepared
> only under a NEW window.  

> first i insert the email id in the TO field. then i run
> the QT in the text body.

> what i want to do now is to extract the domain name of
> the email id i enter and place it in the BCC field with
> the name "management@., operations@. and
> accounts@.." when the QT is run.

> hope someone can assist me plse

Somebody who knows about regular expressions could help.

You need a RegEx to extract the string that begins immediately after
the last "@" character in the "To" field and is followed by either ">"
or the end of the line.



thank you, any one out there can assist me Plse
FYI, the TO field will have only a single email id.

-- 
vernon



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